请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

webpack5 devtool: '#cheap-module-eval-source-map'这里还是会跑不起来

图片描述按照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:

正在回答 回答被采纳积分+3

1回答

Jokcy 2021-02-26 21:19:09

你把#去掉试试

0 回复 有任何疑惑可以回复我~
  • 提问者 qq_钟离紫灵_0 #1
    试过了不行
    回复 有任何疑惑可以回复我~ 2021-03-01 18:34:21
  • 提问者 qq_钟离紫灵_0 #2
    我换成了这个eval-cheap-module-source-map
    回复 有任何疑惑可以回复我~ 2021-03-02 14:33:54
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信