intlify / nuxt3

Nuxt 3 Module for vue-i18n-next

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

start error

z1047549075 opened this issue · comments

Hi,
I've just installed "@intlify/nuxt3": "^0.1.10" with "nuxt3": "latest" and added the buildModules: ["@intlify/nuxt3"].
like this:

buildModules: ['@intlify/nuxt3'],
intlify: {
vueI18n: {
locale: 'zh',
messages: {
en: { header: {},footer:{} },
zh: { header: {},footer:{} }
}
}
}
it can work normally in the development,and it can be builded

but when i start my project ,it has error
TypeError: messageCompiler is not a function
at compileMessageFormat (file:///E:/zyf/workspace/demo-nuxt3-app/.output/server/chunks/server2.mjs:16360:15)
at translate (file:///E:/zyf/workspace/demo-nuxt3-app/.output/server/chunks/server2.mjs:16298:45)
at file:///E:/zyf/workspace/demo-nuxt3-app/.output/server/chunks/server2.mjs:16789:38
at wrapWithDeps (file:///E:/zyf/workspace/demo-nuxt3-app/.output/server/chunks/server2.mjs:16777:13)
at Proxy.t (file:///E:/zyf/workspace/demo-nuxt3-app/.output/server/chunks/server2.mjs:16789:12)
at _sfc_ssrRender$2 (file:///E:/zyf/workspace/demo-nuxt3-app/.output/server/chunks/server2.mjs:15320:242)
at renderComponentSubTree (file:///E:/zyf/workspace/demo-nuxt3-app/.output/server/chunks/index.mjs:9918:13)
at renderComponentVNode (file:///E:/zyf/workspace/demo-nuxt3-app/.output/server/chunks/index.mjs:9863:16)
at Object.ssrRenderComponent (file:///E:/zyf/workspace/demo-nuxt3-app/.output/server/chunks/index.mjs:10278:12)
at _sfc_ssrRender (file:///E:/zyf/workspace/demo-nuxt3-app/.output/server/chunks/server2.mjs:18662:32)

do you know what happened,very thx~~