nuxt-webpack-optimisations
nuxt-webpack-optimisations copied to clipboard
Error on startup: SyntaxError: Invalid or unexpected token
Describe the bug When i installed plugin and start app, i get an error
To Reproduce Steps to reproduce the behavior:
- install via yarn.
- Add to nuxt.config.js installation below
- try to
npm run dev
Expected behavior To build and work
Screenshots

Additional context Nuxt version 2.14.11. No bridge to v3. Firstly got an error on node@14, therefore i updated to node@18, but this does't help Installation:
buildModules: [
'nuxt-webpack-optimisations'
]
Hey, thanks for the issue. Could you try with node 16, otherwise what is the error in node 18?
The code it's flagging isn't from my code, but the @nuxt/kit, so not too much I can do about it.
@harlan-zw Tried with node@16
Same thing
It looks like the problem is with optional chaining, but node@18 already have native support for optional chaining