framework7io / framework7-template-vue-webpack

Deprecated! Framework7 Vue Webpack starter app template with hot-reload & css extraction

Home Page:https://framework7.io/vue/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npm run build-prod error

chanvi opened this issue · comments

ERROR in app.js from UglifyJs
Unexpected token: name (t7ctx) [./node_modules/_template7@1.4.0@template7/dist/template7.esm.js:15,0][app.js:1584,4]

Build failed with errors.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! framework7-template-vue-webpack@2.0.0 build-prod: node ./build/prod.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the framework7-template-vue-webpack@2.0.0 build-prod script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! G:\nodejs\node_cache_logs\2019-01-05T09_22_54_973Z-debug.log

What was the fix? I'm getting the same thing:

ERROR in app.js from UglifyJS
Unexpected token: name (MockStorage) [./node-modules/vuex-persis/dist/esm/index.js:6,0][app.js:36682,4]

Google searching leads me to the idea that older versions of uglifyjs-webpack-plugin can't handle ES6 (only ES5) but I'm on the latest main (2.1.1). Anyone else run into this?

What was the fix? I'm getting the same thing:

ERROR in app.js from UglifyJS
Unexpected token: name (MockStorage) [./node-modules/vuex-persis/dist/esm/index.js:6,0][app.js:36682,4]

Google searching leads me to the idea that older versions of uglifyjs-webpack-plugin can't handle ES6 (only ES5) but I'm on the latest main (2.1.1). Anyone else run into this?

me, right now

EDIT: check this - worked for me to switch to "terser"

framework7io/framework7-cli@e67868c

webpack-contrib/uglifyjs-webpack-plugin#367 (comment)