我有一个网站,在过去的4个月里一直运行良好。随机站点停止在netflix上部署,我不断得到这个错误:
Generating development JavaScript bundle failed
Can't resolve 'babel-runtime/helpers/possibleConstructorReturn' in
'D:Websitesnemesis-cheernode_modulesreact-script-taglib'
我试过重新安装babel,试过降级到不同版本的babel/runtime,试过清理缓存和重新部署,甚至试过恢复到旧版本的repo,我知道一个事实,部署成功,他们仍然失败。
这是我的部署日志:https://pastebin.com/raw/dH45EtP5
回购是:https://github.com/mont266/nemesis-cheerleading
我真的被困住了,如果有人能帮我一把,我将非常感激。
尝试升级您的babel/core
依赖。
现在您已将其锁定到7.13.8
(根据您的package-lock.json
),并且似乎在7.5.5
中固定了丢失的助手,根据此堆栈跟踪。
我通过重新安装yarn和做'yarn add babel-runtime'修复了这个问题。一定是不小心把整个插件删掉了。
我建议您尝试将"babel-runtime": "6.26.0"
添加到package.json
中也许它会为你修复一个错误