vue-weather-widget icon indicating copy to clipboard operation
vue-weather-widget copied to clipboard

Component Issue executing npm run build on vue.cli 2 project

Open estebansuarez-dev opened this issue 4 years ago • 0 comments

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:

vue-weather-widget-error

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

estebansuarez-dev avatar Oct 09 '20 00:10 estebansuarez-dev