-
-
Notifications
You must be signed in to change notification settings - Fork 488
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
Updating from 8.5.5 to 9.0.0 causes build warning #3209
Comments
Same issue here.
Reproduction link: https://stackblitz.com/edit/bobbiegoede-nuxt-i18n-starter-sic7wm Reproduction command: |
same issue here. |
/cc @BobbieGoede @kazupon We should add this here https://github.com/intlify/bundle-tools/blob/main/packages/unplugin-vue-i18n/src/core/directive.ts#L92: return {
code,
map: { version: 3, mappings: '', sources: [] } as any,
} |
This should fix the issue: intlify/bundle-tools#413 |
I've just released v5.3.0 |
Hi @kazupon, @userquin, This is happening with |
Hello dear @userquin Fantastic. Just updated everything and..... no more warnings! Thank you very much for fixing it 💃 @Anton-Plagemann |
This issue should be closed when linked pr merged |
Environment
Reproduction
Nuxt Configuration: Use the following nuxt.config.ts setup for i18n:
i18n: {
locales: [
{ code: 'en', file: 'en.json' },
{ code: 'fr', file: 'fr.json' },
{ code: 'de', file: 'de.json' },
{ code: 'it', file: 'it.json' }
],
defaultLocale: 'de',
lazy: true
}
i18n Config File: Include the following i18n configuration in i18n.config.ts:
export default defineI18nConfig(() => ({
legacy: false,
locale: 'de',
fallbackLocale: 'en'
}))
Run the Build Command: Execute npm run build to compile the application.
Observe the Warning: During the build process, the following warning appears multiple times
Describe the bug
When building my Nuxt application using npm run build, I encounter repeated warnings related to unplugin-vue-i18n:directive. The specific warning message reads:
This warning appears multiple times throughout the build process and seems related to the recent upgrade to @nuxtjs/i18n version 9, which uses unplugin-vue-i18n. Despite following the v9 migration guide and adjusting configurations, the warning persists, indicating potential issues with sourcemap generation during file transformations by unplugin-vue-i18n.
Additional context
I'm not sure if this is an issue with the module or with the main upstream element.
If you need anything else like logs or any configs, please let me know. I am more than happy to help!
Logs
No response
The text was updated successfully, but these errors were encountered: