Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
estebansuarez-dev opened this issue Oct 9, 2020 · 0 comments
Open

Comments

@estebansuarez-dev
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant