引入@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
相关产品推荐
相关产品推荐

