-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Failing to set include
param causes all json imports to be parsed by i18n
#40
Comments
Thank you for your reporting! So, In order for us to find the cause, we need a repo to reproduce.
I've found out some stuff from your npm packages that are installed in your environment. I'm curious what your environment looks like. |
Yes was trying to migrate to vite from webpack and later discovered v9 isn't compatible with Vue2. No worries, I assume it might be due to the version mismatch. Someone can reopen if they encounter it too. |
@kazupon Is there any version of I've got everything working except for i18n as messages are not loading from blocks like they were in Webpack. I instead get missing key errors. (I've downgraded to vue-i18n 8.25.0 already) |
Unfortunately, migration step for vue-i18n-composable + Composition API
migration step for Options API
|
Thanks @kazupon for clarifying, no problem. I can't upgrade yet to Vue 3 due to other third-party dependencies. But I just moved all my |
Reporting a bug?
I did not set the
include
config param since I don't use any translation files and just use blocks.This caused vite-plugin-vue-i18n to parse all json imports as message files. Such that a regular json import threw the error seen below:
Expected behavior
No files should be parsed for messages when
include
is not specified.Reproduction
Tell me if needed
Issue Package
vite-plugin-vue-i18n
System Info
Screenshot
No response
Additional context
Validations
The text was updated successfully, but these errors were encountered: