Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find locale module #88

Open
LangRizkie opened this issue Mar 7, 2022 · 1 comment
Open

Cannot find locale module #88

LangRizkie opened this issue Mar 7, 2022 · 1 comment

Comments

@LangRizkie
Copy link

i tried to import locales: ['id'] but always get this error in generate / build mode, any clue?

Error: [worker] Cannot find module 'D:\bizhare\bizhare-nuxt\node_modules\moment\locale\id' imported from D:\bizhare\bizhare-nuxt\node_modules\.cache\nuxt\nitro\index.mjs   │
   │   Did you mean to import moment/locale/id.js
@kukudim
Copy link

kukudim commented Mar 14, 2022

Same issue get after switching to nuxt-bridge. Reproduced at starting server and reload page. Solved by adding .js to import 'moment/locale/${l}' fragment in plugin.js. Hotfix needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants