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
As I couldn't figure out how to use unplugin-vue-i18n in combination with nuxtjs following this integration guide, I tried reproducing everything from the examples. However, this example seems to be broken and therefore little helpful.
Expected behavior
The minimal demo app should run just fine.
Reproduction
Clone this repo (no matter whether whole repo or only the examples/frameworks/nuxt3 subdir via GIT sparseCheckout).
Change into the subdir examples/frameworks/nuxt3, and follow the README in that subdir:
npm install
npm run dev
This throws the following error, and no server will be started:
$ npm run dev
> dev
> nuxt dev
Nuxt 3.7.4 with Nitro 2.6.3 1:42:59 PM
ERROR (0 , _nuxt.defineNuxtConfig) is not a function 1:43:00 PM
at nuxt.config.ts:7:43
at evalModule (node_modules/jiti/dist/jiti.js:1:255614)
at Object.jiti (node_modules/jiti/dist/jiti.js:1:253542)
at resolveConfig (node_modules/c12/dist/index.mjs:280:24)
at loadConfig (node_modules/c12/dist/index.mjs:116:40)
at async loadNuxtConfig (node_modules/@nuxt/kit/dist/index.mjs:2530:18)
at async Object.run (node_modules/nuxi/dist/chunks/dev.mjs:174:25)
at async runCommand$1 (node_modules/nuxi/dist/shared/nuxi.9d864d83.mjs:1647:7)
at async runCommand$1 (node_modules/nuxi/dist/shared/nuxi.9d864d83.mjs:1638:11)
at async runMain$1 (node_modules/nuxi/dist/shared/nuxi.9d864d83.mjs:1770:7)
ERROR (0 , _nuxt.defineNuxtConfig) is not a function 1:43:00 PM
There also seem to be issues in nuxt.config.ts:
In line 1, defineNuxtConfig is highlighted with this error in my IDE: 'TS2305: Module "nuxt" has no exported member defineNuxtConfig'
In line 20, the import.meta portion of import.meta.url is highlighted with this error: 'TS1343: The import.meta meta-property is only allowed when the --module option is es2020, es2022, esnext, system, node16, or nodenext'
Reporting a bug?
As I couldn't figure out how to use unplugin-vue-i18n in combination with nuxtjs following this integration guide, I tried reproducing everything from the examples. However, this example seems to be broken and therefore little helpful.
Expected behavior
The minimal demo app should run just fine.
Reproduction
npm install
npm run dev
This throws the following error, and no server will be started:
There also seem to be issues in nuxt.config.ts:
defineNuxtConfig
is highlighted with this error in my IDE: 'TS2305: Module"nuxt"
has no exported memberdefineNuxtConfig
'import.meta
portion ofimport.meta.url
is highlighted with this error: 'TS1343: Theimport.meta
meta-property is only allowed when the--module
option ises2020
,es2022
,esnext
,system
,node16
, ornodenext
'System Info
Screenshot
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: