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

Types not found on fresh install and import #111

Closed
AldieryGonzalez opened this issue Oct 30, 2024 · 2 comments
Closed

Types not found on fresh install and import #111

AldieryGonzalez opened this issue Oct 30, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@AldieryGonzalez
Copy link

Describe the bug
Types are not found for the package, although it does find the

To Reproduce
Steps to reproduce the behaviour including how the markdown file is processed:

  1. Import Package as seen below

Expected behavior
This is not breaking but just to have some stronger types so this error doesnt break my linters

Screenshots
image
image

Stack trace
Could not find a declaration file for module 'mdx-mermaid'. '/home/aldiery/repos/paradigm-study-web/node_modules/mdx-mermaid/lib/mdxast-mermaid.mjs' implicitly has an 'any' type.
There are types at '/home/aldiery/repos/paradigm-study-web/node_modules/mdx-mermaid/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'mdx-mermaid' library may need to update its package.json or typings.

Tool chain used:

  • NextJs MDX
  • Typescript
  • EcmaScript Modules
@AldieryGonzalez AldieryGonzalez changed the title On Types not found on fresh install and import Oct 30, 2024
@Thijmen
Copy link

Thijmen commented Nov 5, 2024

Same here, it seems.

"mdx-mermaid": "^2.0.1",

@sjwall sjwall self-assigned this Nov 5, 2024
@sjwall sjwall added the bug Something isn't working label Nov 5, 2024
sjwall added a commit that referenced this issue Nov 5, 2024
@sjwall
Copy link
Owner

sjwall commented Nov 5, 2024

Thank you for raising this, issue is fixed in v2.0.2

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