Help me! My next project cannot resolve module in build time. But, there is no problem at runtime. #76978
Unanswered
nayounsang
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I made package:
"example-package": "workspace:*"
.I made this project in
pnpm
monorepo.example-package
has peer dep:example-peer
.If I run
pnpm build
What should I do? I think we need some kind of fundamental solution.
Additional information
I think, this is because of
"node": null
inexample-peer
An error occurred at runtime(pnpm dev) as well, but it was possible to bypass it with this code (dynamic import).
However, the build fails and I don't think this is a good way to do it.
next/dynamic couldn't even bypass it.
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions