You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could not resolve import "@intlify/unplugin-vue-i18n/messages" in ...nuxt/dist/server/server.mjs
using exports defined in /node_modules/@intlify/unplugin-vue-i18n/package.json.
'@intlify/unplugin-vue-i18n/messages' is imported by .nuxt/dist/server/server.mjs, but could not be resolved – treating it as an external dependency.
Expected behavior
In dev mode @intlify/unplugin-vue-i18n/messages the package automatically imports the messages created in the locales folder, but while building a ssr in nuxt 3 the builder couldn't resolve the messages file, and treating it as an external dependency.
I was expecting that the builder would import @intlify/unplugin-vue-i18n/messages, so I can find the messages in built ssr file.
Reproduction
Link to github repo that show how i implement it. to see the bug just uncomment this lineGitHub
jonmes
changed the title
'@intlify/unplugin-vue-i18n/messages' is imported by .nuxt/dist/server/_blog_.55070800.js, but could not be resolved – treating it as an external dependency
'unplugin-vue-i18n/messages' is imported by nuxt/dist/server but could not be resolved – treating it as an external dependency.
Jul 25, 2022
my bad I haven't properly configured the build transpiler. build: { transpile: ["@intlify/unplugin-vue-i18n"], },
now it generates perfectly using the code above.
Reporting a bug?
Could not resolve import
"@intlify/unplugin-vue-i18n/messages" in ...nuxt/dist/server/server.mjs
using exports defined in /node_modules/@intlify/unplugin-vue-i18n/package.json.
'@intlify/unplugin-vue-i18n/messages' is imported by .nuxt/dist/server/server.mjs, but could not be resolved – treating it as an external dependency.
Expected behavior
In dev mode @intlify/unplugin-vue-i18n/messages the package automatically imports the messages created in the locales folder, but while building a ssr in nuxt 3 the builder couldn't resolve the messages file, and treating it as an external dependency.
I was expecting that the builder would import @intlify/unplugin-vue-i18n/messages, so I can find the messages in built ssr file.
Reproduction
Link to github repo that show how i implement it. to see the bug just uncomment this lineGitHub
System Info
Screenshot
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: