Error: Cannot find module 'webpack-cli/bin/config-yargs'

前端 未结 8 1342
渐次进展
渐次进展 2021-01-04 01:57

\'Github\' asked me to update \'webpack-dev-server\' to version 3.1.11 or higher for security reasons.

However, \'npm run dev\' will not run after the update.

<
8条回答
  •  北海茫月
    2021-01-04 02:31

    webpack core team says that form version 3+ the compatibility will foucs on webpack 4

    so I think you need also to update webpack 3 to webpack 4

    this doc may help you to achieve that https://webpack.js.org/migrate/4

提交回复
热议问题