[Bug] module not found when dynamically importing milkdown/prose/* into Next.js 13 application #1695
Open
2 tasks done
Labels
bug
Something isn't working
Initial checklist
Affected packages and versions
milkdown/prose/*
Link to runnable example
No response
Steps to reproduce
Hi, I'm trying to dynamically import components from @milkdown/prose/* into my Next.js 13 application.`
However, it's erroring out when I run
next build
Module not found: Package path ./tables is not exported from package /home/circleci/project/frontend/node_modules/@milkdown/prose (see exports field in /home/circleci/project/frontend/node_modules/@milkdown/prose/package.json)
As an aside, the initial reasoning for introducing the dynamic imports was that I was running into the following issue during
next build
when I upgraded my application from Next.js 12 to Next.js 13.Expected behavior
@milkdown/prose/* should be correctly resolved especially since it is listed in the "exports" of the package.json
Actual behavior
I'm running into the following errors when I run
next build
Runtime
Chrome
OS
Linux
Build and bundle tools
Next.js
The text was updated successfully, but these errors were encountered: