Replies: 1 comment 2 replies
-
Have you tried using faker as normal dependency temporarily? If you use it at runtime you have to use it as dependency vs if you only need it during development/tests then you need it as a dev dependency. Is our documentation confusing in that regard? |
Beta Was this translation helpful? Give feedback.
2 replies
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.
-
Hi!
I'm trying to use @faker-js/faker in my Ember app but encountering an issue.
Node version: 14
Ember CLI: 3.14
Faker: 8.4
In tests it runs perfectly and generates data as expected, however when I start the server locally (emebr serve), I'm getting this error in the web console:
loader.js:247 Uncaught Error: Could not find module
@faker-js/fakerimported from
ember-frontend/tests/factories/user``Here is the code of
ember-frontend/tests/factories/user
:I've ensured @faker-js/faker is installed as a dev dependency and tried various configuration adjustments without success. Any piece of advice would be greatly appreciated.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions