我使用 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
是什么导致了这个错误?怎样才能解决它?我很困惑。我尝试了新的网站,但出现了相同的问题。
我升级到了最新版的node,所以可能与此有关。有人可以帮忙吗?