When half a year does not touch the Webpack + Vuejs project to see the god pit!

Source: Internet
Author: User

Six months ago the Vuejs project, because the Webpack environment has been 1.0, not to say will not change and dare not change.

Word. When I start this project again: NPM Run DEV/NPM Run build

Constantly reported missing some modules of the error, at first I did not care about the guide one after the download, downloaded a few after. I suddenly found something wrong.

Later doubts were webpack the new version of the issue. The global reload was back to 1. X version. Later only to know that it was wrong. Because the compiled version is based on the webpack of the current project. That is, I do use version 1.0 to compile. and the error.

And then I thought it was nodejs. The upgraded version is too high to be stable. Immediately found a stable version of the reload. The result is still wrong.

Under the helpless. I also use NPM to install (because of the wall, I almost use cnpm to install, maybe it's a problem?). )。 As a result, the TM NPM still has a lot of problems that make my module incomplete.

Let's just say the result:

I removed the entire node_modules and then used the CNPM install. After a long wait, the installation is complete

Execute NPM Run DEV/NPM Run build

Success!

When half a year does not touch the Webpack + Vuejs project to see the god pit!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.