Module not found: Can't resolve '@xxx' when I run docker image #57507
Unanswered
thomas-void0
asked this question in
Help
Replies: 3 comments 2 replies
-
Have you found an answer to this? I still can't deploy my latest changes because of this. |
Beta Was this translation helpful? Give feedback.
1 reply
-
For me it as the capital case issue. in local it was once i renamed it, it was resolved I followed the following method
|
Beta Was this translation helpful? Give feedback.
0 replies
-
For me, it seems like I need to install typescript before setting NODE_ENV=production in the dockerfile |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
report a error: Module not found: Can't resolve '@xxx' when I build docker image.

such as:
this is my dockerfile:

Strangely enough, it worked when I executed the following dockerfile:
The only difference between them is that one is a test and one is formal. this is my pkg.json:
I try change version of next slove this question. but it still exists. my project is run
npx create-next-app@latest
generate.Looking forward to your reply.
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions