【发布时间】:2022-06-18 04:03:47
【问题描述】:
我用 gatsby (npm init gatsby) 创建了一个站点并添加了一些组件,然后运行良好:
我运行 npm run develop (在运行它之前很好)并得到这个:
failed Building development bundle - 13.532s
ERROR in ./.cache/app.js
Module build failed (from ./node_modules/@pmmmwh/react-refresh-webpack-plugin/loader/index.js):
Error: You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using
SourceMapConsumer
ERROR in ./.cache/polyfill-entry.js
Module build failed (from ./node_modules/@pmmmwh/react-refresh-webpack-plugin/loader/index.js):
Error: You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using
SourceMapConsumer
是什么导致了这个错误,我该如何解决这个问题?我很困惑。尝试使用全新的网站并做同样的事情。
我升级到最新版本的节点,所以也许这与它有关。有人可以帮忙吗?
【问题讨论】: