Dynamic import is broken when using nuxt-i18n

tex0l
0
tex0l
commented 5 months ago

Version

v5.3.0

Reproduction link

https://codesandbox.io/embed/l4921qqll7

Steps to reproduce

Run yarn run dev in the repro link.

What is expected ?

It should work.

What is actually happening?

ERROR Unexpected token (6:16)

Additional comments?

The dynamic import of Logo.vue in index.vue breaks nuxt-i18n. Dynamic import is supported (and even used on their website) by nuxtjs to enable webpack to split the code.

bug
0
rchl
373
rchl
commented 5 months ago

Dup of #134

0
paulgv
4.9k
paulgv
commented 5 months ago

Should be fixed in v5.12.4

0
Informations
Bug Report โ€ข Open
#c239 - Created 5 months ago