The corresponding version of webpack wepack-dev-server

The corresponding version of webpack wepack-dev-server

The reason for this is that an Tapable.plugin is deprecated. Use new API on `.hooks` insteaderror .

After checking the following, it turns out that the version of webpack is too high, and it is currently V4.xx, so some are not supported.

Started to downgrade webpack, packaging was no problem, but then there was a problem when running webpack-dev-server, so one webpack-dev-server was V3.1.3, and then webpack-dev-server was downgraded to V2.xx.

Running cnpm run dev again works fine.

Sigh again, there are really many benefits to writing essays, and the brain index is powerful.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324644634&siteId=291194637