Skip to content

dist/index.js module not found! #2142

Answered by LordReya
LordReya asked this question in Q&A
Discussion options

You must be logged in to vote

I fixed the problem on my own. Yarn clean messed up my whole node_modules. It was stuck in the cache with some other missing files. After I created a completely new projects + manually put in the node modules again it worked perfectly. Thanks for the help @krakxn and @PatrickAlphaC

The command in my package.json should have been only yarn compile instead of "build": "yarn clean && yarn compile"

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@LordReya
Comment options

@krakxn
Comment options

@LordReya
Comment options

Comment options

You must be logged in to vote
1 reply
@PatrickAlphaC
Comment options

Comment options

You must be logged in to vote
2 replies
@krakxn
Comment options

@LordReya
Comment options

Answer selected by LordReya
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants