Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

moduleResolution Bundler: Cannot find module 'pliny/mdx-components' or its corresponding type declarations.ts(2307) #183

Open
ImBIOS opened this issue Oct 6, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@ImBIOS
Copy link

ImBIOS commented Oct 6, 2024

The title already tells everything about it.

Let me know if there's anything you need.

@ImBIOS ImBIOS added the bug Something isn't working label Oct 6, 2024
@surajrimal07
Copy link

same issue here too, did you found any fix? issue seems to come from this , "moduleResolution": "bundler", using "node" fixes this, not sure what the actual issue is though.

@ytausch
Copy link

ytausch commented Dec 24, 2024

As a workaround, I found you can add the following paths mapping to tsconfig.json:

{
  "compilerOptions": {
    "module": "esnext",
    "moduleResolution": "bundler",
    "target": "ES6",
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "paths": {
      "pliny/*": ["node_modules/pliny/*"]
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants