在执行npm run build时遇到Webpack配置错误,提示configuration.output有未知属性'publiscPath'。错误源于拼写错误,正确的应该是'publicPath'。解决方案是检查并修正webpack配置文件中的拼写问题。另外,还提到了vscode可能将plugins拼写成Plugin导致的报错,同样需要修正。
摘要由CSDN通过智能技术生成
执行npm run build的时候报错怎么办?
[webpack-cli] Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.configuration.output has an unknown property ‘publiscPath’.