-
-
Notifications
You must be signed in to change notification settings - Fork 483
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
Error when project path contains ".js" #1109
Closed
hrastnik opened this issue
Mar 15, 2021
· 2 comments
· Fixed by #1110, voken1000g/toolkit#40, voken1000g/upgrade#31, voken1000g/early-bird#36 or nogic1008/nuxt-ts-template#408
Closed
Error when project path contains ".js" #1109
hrastnik opened this issue
Mar 15, 2021
· 2 comments
· Fixed by #1110, voken1000g/toolkit#40, voken1000g/upgrade#31, voken1000g/early-bird#36 or nogic1008/nuxt-ts-template#408
Labels
Comments
rchl
added a commit
that referenced
this issue
Mar 15, 2021
rchl
added a commit
that referenced
this issue
Mar 15, 2021
Wow, that was fast! Thank you for the quick fix. |
This was referenced Mar 15, 2021
This was referenced Mar 16, 2021
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
nuxt-i18n: 6.21.0
nuxt: all versions
Steps to reproduce
When the project directory path contains ".js" the bundler crashes with the following error:
Dependency not found "~i18n-klona"
The problem is in this line:
https://github.com/nuxt-community/i18n-module/blob/c6580240190e754496c3a6a25a52a46dc1c86c59/src/index.js#L88
The
.replace(".js", ".mjs")
should replace only the ".js" extension, but instead it replaces the first ".js" it encounters.The text was updated successfully, but these errors were encountered: