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

codes.js is not exported from package node_modules/micromark-util-symbol #474

Open
cloudcompute opened this issue Sep 18, 2024 · 0 comments

Comments

@cloudcompute
Copy link

cloudcompute commented Sep 18, 2024

Describe the bug

Importing next-mdx-remote is raising this :

It raises this exception in 'next dev' mode: Package path ./codes.js is not exported from package /.../web/node_modules/micromark-util-symbol

[1] automatically enabled Fast Refresh for 1 custom loader
[1] ⨯ ../../node_modules/micromark-extension-mdx-expression/node_modules/micromark-util-character/dev/index.js:5:1
[1] Module not found: Package path ./codes.js is not exported from package /.../web/node_modules/micromark-util-symbol (see exports field in /.../web/node_modules/micromark-util-symbol/package.json)
[1]
[1] https://nextjs.org/docs/messages/module-not-found
[1]
[1] Import trace for requested module:
[1] ../../node_modules/micromark-extension-mdx-expression/dev/lib/syntax.js
[1] ../../node_modules/micromark-extension-mdx-expression/dev/index.js
[1] ../../node_modules/micromark-extension-mdxjs/index.js

Reproduction

Use Next 14.2.12 and next-mdx-remote v5.0.0.

Try to serialize using next-mdx-remote/serialize

Note: these combinations work fine:
a. Next 14.2.12 and next-mdx-remote v4.4.1
b. Next 14.2.4 and next-mdx-remote v5.0

Probably the issue is with Next.

next-mdx-remote version

v5.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant