JuniorTour / vue-template-babel-compiler

Enable Optional Chaining(?.), Nullish Coalescing(??) and many new ES syntax for Vue.js SFC based on Babel
https://www.npmjs.com/package/vue-template-babel-compiler
118 stars 9 forks source link

After upgrading nodev10 to 16 optional chaining is not working for template as well as in code #44

Closed patelatit53 closed 9 months ago

patelatit53 commented 1 year ago

I recently tried to upgrade my node version as nodev10 stopped support,

I had vue-template-babel-compiler installed to support optional chaining for the templates but after doing a fresh npm install, somehow I started getting Server compilation errors.

JuniorTour commented 1 year ago

Sorry for the late reply.

1. this lib do work for Nuxt.js && Node.js v16+

So this may be not related to Node version.

2. Many package version of your package.json is not exist

eg:

"@nuxtjs/pwa":"3.0.0–0",
"@nuxtjs/dotenv":"2.4.0",

So I can't finish the npm install process.

I think you may have the same issue, your npm install was not finished, so you get build error after npm run dev.

You may need clean up your npm dependencies.

You can refer to this nuxt DEMO project: https://github.com/JuniorTour/vue-template-babel-compiler-nuxt-project