n [Error]: Calling faker.helpers.arrayElement()
without arguments is no longer supported.
#2250
-
I meet a error with
the call stack is follow:
but it works well with
and "version": "8.0.2" |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
you generally should use the prebuilt faker instances to access locales, for example: const {fakerEN_US, fakerZH_CN} = require("@faker-js/faker")
fakerEN_US.internet.email()
fakerZH_CN.internet.email() This ensures that fallback languages are loaded correctly. |
Beta Was this translation helpful? Give feedback.
-
This isnt the error message I would expect. |
Beta Was this translation helpful? Give feedback.
-
Minimal reproduction for this, showing that faker.person.firstName doesn't use the same error as other missing data.
|
Beta Was this translation helpful? Give feedback.
you generally should use the prebuilt faker instances to access locales, for example:
This ensures that fallback languages are loaded correctly.