我的网站在过去 4 个月内一直运行良好。该网站随机停止在 Netlify 上部署,我不断收到此错误:
Generating development JavaScript bundle failed
Can't resolve 'babel-runtime/helpers/possibleConstructorReturn' in
'D:\Websites\nemesis-cheer\node_modules\react-script-tag\lib'
我尝试过重新安装 babel,尝试降级到不同版本的 babel/runtime,尝试清除缓存并重新部署,甚至尝试恢复到我知道部署成功的旧版本存储库,但它们仍然失败。
这是我的部署日志: https://pastebin.com/raw/dH45EtP5
存储库是: https://github.com/mont266/nemesis-cheerleading
如果有人能帮助我,我真的很沮丧。
最佳答案
尝试升级您的 babel/core
依赖项。
现在您已将其锁定到 7.13.8
(根据您的 package-lock.json
),并且似乎缺少的帮助程序已在 7.5.5
中修复,根据this stack trace .
关于npm - GatsbyJS - 无法解析 'babel-runtime/helpers/possibleConstructorReturn',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66399637/