webpack5 devtool: '#cheap-module-eval-source-map'这里还是会跑不起来
来源:1-5 (如果您初学,建议您先跟着课程版本走,项目完成后再升级)补充Webpack4.29升级(1)
qq_钟离紫灵_0
2021-02-24
按照webpack5文档上修改,可还是跑不起来
× 「wds」: Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
- configuration.devtool should match pattern “^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map$”.
BREAKING CHANGE since webpack 5: The devtool option is more strict.
Please strictly follow the order of the keywords in the pattern.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vue-ssr-tech@1.0.0 dev:client:cross-env NODE_ENV=development webpack-dev-server --config build/webpack.config.client.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue-ssr-tech@1.0.0 dev:client script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
写回答
1回答
-
Jokcy
2021-02-26
你把#去掉试试
022021-03-02
相似问题