vue-weather-widget
vue-weather-widget copied to clipboard
Component Issue executing npm run build on vue.cli 2 project
Hi,
I'm having an issue when trying to execute the command npm run build on a vue-cli 2 project that uses the latest version of the vue-weather-widget. You can check the error's trace in the following image:
It seems that UglifyJs has a problem proccesing the component's utils.js file. I did a little research and I found in a forum that the error could be caused because ECMAS6 syntax is being used inside de utils.js file. I can't migrate to vue-cli 3 at the moment because the project works embedded in a Django project using Django Webpack Loader and that library only recognizes the vue-cli 2 project structure.
When I execute the project using npm run dev, everything works fine. The issue only happens at build time.
Thanks for your help
Esteban