Build error when just added nuxt-i18n to nuxt.config

tats-u
0
tats-u
commented 2 months ago

Version

v6.0.2

Reproduction link

https://github.com/tats-u/nuxt-ts-vuetify-i18n-test

Steps to reproduce

git clone https://github.com/tats-u/nuxt-ts-vuetify-i18n-test
cd nuxt-ts-vuetify-i18n-test
yarn install
yarn run dev

What is expected ?

ERROR  Unexpected character '@' (10:0)                                              19:57:01  

  at _class.pp$4.raise (node_modules\nuxt-i18n\node_modules\acorn\dist\acorn.js:2836:15)       
  at _class.pp$9.getTokenFromCode (node_modules\nuxt-i18n\node_modules\acorn\dist\acorn.js:4569:10)
  at _class.pp$9.readToken (node_modules\nuxt-i18n\node_modules\acorn\dist\acorn.js:4297:17)   
  at _class.pp$9.nextToken (node_modules\nuxt-i18n\node_modules\acorn\dist\acorn.js:4288:17)   
  at _class.pp$9.next (node_modules\nuxt-i18n\node_modules\acorn\dist\acorn.js:4245:10)        
  at _class.pp$3.parseLiteral (node_modules\nuxt-i18n\node_modules\acorn\dist\acorn.js:2299:10)  at _class.pp$3.parseExprAtom (node_modules\nuxt-i18n\node_modules\acorn\dist\acorn.js:2210:19)
  at _class.parseExprAtom (node_modules\nuxt-i18n\node_modules\acorn-dynamic-import\lib\index.js:75:117)
  at _class.pp$1.parseImport (node_modules\nuxt-i18n\node_modules\acorn\dist\acorn.js:1553:55) 
  at _class.pp$1.parseStatement (node_modules\nuxt-i18n\node_modules\acorn\dist\acorn.js:863:49)
  at _class.parseStatement (node_modules\nuxt-i18n\node_modules\acorn-dynamic-import\lib\index.js:63:118)
  at _class.pp$1.parseTopLevel (node_modules\nuxt-i18n\node_modules\acorn\dist\acorn.js:746:23)  at _class.parse (node_modules\nuxt-i18n\node_modules\acorn\dist\acorn.js:553:17)
  at Function.parse (node_modules\nuxt-i18n\node_modules\acorn\dist\acorn.js:576:37)
  at _19f‍.r.exports.extractComponentOptions (node_modules\nuxt-i18n\src\helpers\components.js:
20:61)
  at buildLocalizedRoutes (node_modules\nuxt-i18n\src\helpers\routes.js:29:21)

What is actually happening?

Build succeeded

bug
0
rchl
373
rchl
commented 2 months ago

Duplicate of #408

0
tats-u
0
tats-u
commented 2 months ago

Oh, it's true. Should I write this report also to that issue?

0
Informations
Bug ReportOpen
#c294 - Created 2 months ago