-
-
Notifications
You must be signed in to change notification settings - Fork 498
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 create property 'locales' on string '[object Object]' #3365
Comments
This might be related to using
This file should be to be in the |
Thanks for your fast reply. I tried transforming the stackblitz from npm to yarn : https://stackblitz.com/edit/bobbiegoede-nuxt-i18n-starter-3fvgnmxg update: in my own solution i changed everything from Yarn to NPM, but the exact same error still occurs. |
I'm unable to reproduce the issue with that project, I did have to install The module needs to have some additional checks whether typescript is being used or not, currently it relies on typescript whether it is being used or not, to support loading ts files. |
Closing due to inactivity, if you're still experiencing this issue with the latest release, let me know with an updated reproduction and I'll reopen! |
Environment
Reproduction
I could not create a stackblitz that reproduced this error.
The i18n.config.js file is in the same root folder as nuxt.config.js:
The language files are in i18n/locales/nl-be.js, i18n/locales/fr-be.js, i18n/locales/en-be.js. And contain this:
Describe the bug
When starting Nuxt i receive the error :
ERROR Cannot start nuxt: Cannot create property 'locales' on string '[object Object]'
I am sure this is related to @nuxtjs/i18n, because if i comment it out in the nuxt.config.js modules, the error disappears and my nuxt application runs.
I tried reducing the sample code above to the absolute minimum but the same error remains.
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: