gpt4 book ai didi

What is the reason why I get a prerender error with the generate command when using the i18n package in Nuxt3?(在使用Nuxt3中的I18N包时,我使用GENERATE命令出现预渲染错误的原因是什么?)

转载 作者:bug小助手 更新时间:2023-10-25 12:47:05 25 4
gpt4 key购买 nike



When I use the Nuxt3 npm run generate command with the i18n package, I receive the following errors, but when I do not use the package, I do not receive the errors. How can I solve this error?

当我在I18N包中使用Nuxt3NPM run Generate命令时,我收到以下错误,但当我不使用该包时,我没有收到这些错误。我如何才能解决这个错误?


package.json: "@nuxtjs/i18n": "^8.0.0-rc.4",

Package.json:“@nuxtjs/i18n”:“^8.0.0-rc.4”,


`modules: [
"@nuxtjs/i18n",
],

`模块:[“@nuxtjs/i18n”,],


i18n: {
lazy: true,
langDir: "locales",
strategy: "prefix_and_default",
locales: [
{
code: "en",
iso: "en-US",
name: "English",
file: "en.json"
},
{
code: "tr",
iso: "tr-TR",
name: "Türkçe",
file: "tr.json"
},
],
defaultLocale: "tr",
}`

I18N:{lazy:true,langDir:“区域设置”,策略:“PREFIX_AND_DEFAULT”,区域设置:[{code:“en”,iso:“en-US”,name:“English”,file:“en.json”},{code:“tr”,iso:“tr-tr”,名称:“Türkçe”,文件:“tr.json”},],defaultLocale:“tr”,}`


enter image description here


enter image description here


enter image description here


enter image description here


I searched for ways to run the npm run generate command with the i18n package but couldn't find it. Without this package, npm run generate command works.

我在i18n包中搜索了运行npm run generate命令的方法,但找不到。没有这个包,npm run generate命令可以工作。


更多回答
优秀答案推荐
更多回答

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com