我的项目运行良好。当我升级到 Webpack 5 时,出现了这个问题。我在网上搜索,但所有讨论似乎都是来自以前的版本,我什至尝试了指定的解决方法,但无济于事。
\SourceCode\node_modules\webpack\node_modules\webpack-sources\lib\SizeOnlySource.js:26
throw this._error();
^
Error: Content and Map of this Source is not available (only size() is supported)
Run Code Online (Sandbox Code Playgroud) webpack ×1