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

引入@twilio/Conversations后Angular生产构建报错求助

Angular生产构建引入@twilio/conversations报错问题

引入@twilio/Conversations后,执行ng build可正常构建,但执行ng build --prod生产构建时出现以下错误:

ERROR in ../node_modules/twilsock/builds/browser.js
Module build failed (from ../node_modules/@angular-devkit/build-angular/node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js):
TypeError: Cannot read property 'flags' of undefined
    at resolveNameHelper (/Users/khushbu.raval/Host-FA/Flamingo/hellohealthy.webui/HelloHealthy/HelloHealthy/HelloHealthy.WebUI/node_modules/typescript/lib/typescript.js:32155:45)
    at resolveName (/Users/khushbu.raval/Host-FA/Flamingo/hellohealthy.webui/HelloHealthy/HelloHealthy/HelloHealthy.WebUI/node_modules/typescript/lib/typescript.js:31829:20)

使用版本

  • Angular: 7.2.2
  • Node: 12.14.1
  • @twilio/conversations: 2.1.0

已尝试但无效的解决步骤

  • 降级@twilio/conversations版本
  • 升级angular-cli、typescript版本
  • 删除并重新安装node_modules

内容的提问来源于stack exchange,提问作者Khushbu Raval

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.08.26 02:09:21