You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Angular部署Heroku遇TypeError: 无法读取undefined的'isSupported'属性错误

Angular部署到Heroku时遇到TypeError问题求助

大家好,我在把Angular Web应用部署到Heroku的时候碰到了这个错误:
TypeError: Cannot read property 'isSupported' of undefined

经过排查,错误的来源路径是:
tmp/build_d3e29b6b33fe23eae2f01eaec880901c/node_modules/@angular/cli/models/webpack-config
但node_modules是Heroku部署过程中自动生成的,我没办法直接对它进行操作。

我搜了一圈找到的解决方案都是让删除node_modules然后执行npm install,但我没法在Heroku控制台里完成这个步骤,恳请各位大佬给我提供一些解决思路,谢谢!

我的CLI版本等相关信息如下:

"de...

内容的提问来源于stack exchange,提问作者Diego Rivon

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.25 06:30:54