Issues when deploying #644
-
I have this issue when I am deploying on fly.io. I have tried all I can but I don't know what's wrong. I have uninstalled and re-installed Faker and done anything and everything I can to make this work but nothing works. Any help, please? If anyone has faced this before. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
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. You could run the build locally, then look at I hope that helps. |
Beta Was this translation helpful? Give feedback.
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.