You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Old code doesn't compile on v7 - Faker, de_CH, de and en are not defined.
I'm not sure what the correct syntax for a custom Faker instance was on v7.x?
Old:
import{faker}from'@faker-js/faker';constcustomFaker=newFaker({locale: 'de_CH',// the expected localefallbackLocale: 'de',// ensure we have a German fallbacks for addresseslocales: { de_CH, de, en },});consta=customFaker.internet.email();customFaker.locale='en';// neither 'de_CH' nor 'de' have emojisconstb=customFaker.internet.emoji();
The text was updated successfully, but these errors were encountered:
Followon from #1735
This "old" example in the migration guide on https://next.fakerjs.dev/guide/upgrading.html has problems
Old:
The text was updated successfully, but these errors were encountered: