为什么我的React-Scripts构建对SourceMapConsumer丢下错误?

发布于 2025-01-26 09:10:43 字数 362 浏览 5 评论 0原文

我正在用离子/React构建一个应用程序,直到目前它一直正常运行。我在Ruby的FFI体系结构中遇到了一个错误,并跑了一条酿造Ruby,将路径导出,并用啤酒重新安装了Cocoapods。从那时起,我的反应式构建每次都会因此错误消息而失败:

You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer

我什么也没做任何会影响它的东西,而且我正在努力寻找任何相关信息。对于我如何解决这个问题,任何建议或帮助将不胜感激

I am building an app in Ionic/react, and up until this point it has functioned normally. I ran into an error with the FFI architecture in Ruby, and ran a brew install ruby, exported the path, and reinstalled cocoapods with brew. Since then, my react-scripts build has failed every time with this error message:

You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer

I have done nothing else that would have affected it, and I am struggling finding any relevant information. Any advice or help would be greatly appreciated as to how I can resolve this issue

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

天涯沦落人 2025-02-02 09:10:43

它在我使用节点18时出现。尝试将您的节点实例更改为16。

nvm use 16

It appeared when I used Node 18. Try changing your node instance to 16.

nvm use 16
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文