faker-js / faker

Generate massive amounts of fake data in the browser and node.js
https://fakerjs.dev
Other
12.78k stars 915 forks source link

Locales importing broken in alpha package #507

Closed tiagoporto closed 2 years ago

tiagoporto commented 2 years ago

Describe the bug

Importing directly from locales it's not working.

E.g. import faker from '@faker-js/faker/locale/en'

Package has no locale folder image

Reproduction

import faker from '@faker-js/faker/locale/en'

will return Cannot find module '@faker-js/faker/locale/en'

Additional Info

No response

Shinigami92 commented 2 years ago

Please provide a minimal reproduction, e.g. via fakerjs.dev/new I cannot reproduce this locally :thinking: So it might be a TS setting

prisis commented 2 years ago

Hey @tiagoporto :), could you check the newest alpha out, if the local import is working for you?

tiagoporto commented 2 years ago

Hi @prisis, yeap the new version is working. Thank you.