Skip to content

Issues when deploying #644

Answered by kentcdodds
felixyeboah asked this question in Q&A
Mar 9, 2024 · 1 comments · 10 replies
Discussion options

You must be logged in to vote

You shouldn't be importing anything from faker in production. It's hard for anyone to help you out without seeing the code. All I can tell you is what the error says. @faker-js/faker can't be found. This is because it's a development dependency. So you have some production code that's importing @faker-js/faker somehow.

You could run the build locally, then look at ./build/server/index.js and find where @faker-js/faker is being imported and that may give you an idea of which module is importing it.

I hope that helps.

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@kentcdodds
Comment options

@felixyeboah
Comment options

@felixyeboah
Comment options

@kentcdodds
Comment options

@felixyeboah
Comment options

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

This discussion was converted from issue #643 on March 09, 2024 23:09.