freedomotic / fd-vue-webapp

A Vue.js web application for Freedomotic Open IoT framework
http://fd-vue-webapp.herokuapp.com/
GNU Affero General Public License v3.0
65 stars 66 forks source link

Project build fails #217

Closed mcicolella closed 4 years ago

mcicolella commented 4 years ago

When you execute npm run build the process fails with the following error

`ERROR in static/js/vendor.8fa79e6c6b85a1d6a429.js from UglifyJs Unexpected token: name (code) [./~/vue-snotify/vue-snotify.esm.js:104,0][static/js/vendor.8fa79e6c6b85a1d6a429.js:17691,12]

Build failed with errors.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! fd-vue-webapp@1.0.0 build: node build/build.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the fd-vue-webapp@1.0.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. `

amenak77 commented 4 years ago

Ciao a tutti, Potrebbe esserci una soluzione qui: https://github.com/artemsky/vue-snotify/issues/52 Sembra un problema legato al fatto che non c’è del codice Vue in sintassi ES6 nel progetto, ma del codice in sintassi ES6 nella versione compilata del modulo. Ci vuole una piccola modifica al codice sorgente. C’è anche un consiglio su come evitare che si crei questo disallineamento. Ciao, Alberto

amenak77 commented 4 years ago

Hi everyone, excuse me for my lack in education, but I overreacted and responded in Italian. The issue is probably due to a Vue issue reported here: artemsky/vue-snotify#52 There is a little code changing to do. Bye, Alberto

amenak77 commented 4 years ago

Thanks to wmcmurray for reporting

mcicolella commented 4 years ago

Thanks @amenak77