错误TypeError:o.map不是在angular 4产品构建上的函数

问题描述 投票:1回答:1

我对已经存在的angular 4项目进行了一些更改。在我的本地环境上运行正常。创建生产版本后,出现以下错误。

错误TypeError:o.map不是函数在kt(app.js?1571042006758:49)在View_e_Host_0(VM311 e_Host.ngfactory.js:5)在我(app.js?1571042006758:7)在bt(app.js?1571042006758:49)在t.create(app.js?1571042006758:52)在t.create(app.js?1571042006758:51)在i.bootstrap(app.js?1571042006758:51)在app.js?1571042006758:51在Array.forEach()在t._moduleDoBootstrap(app.js?1571042006758:51)

我不是从它触发的地方得到的。有人可以帮我吗?谢谢

angular production
1个回答
0
投票

经过一番搜寻,我得到了这个问题的答案。问题在于

的版本

@@ angular / common

@@ angular / compiler

我的common版本是4.3.0,compiler版本是4.7.0。我将compiler降级为4.3.0,问题已解决。

© www.soinside.com 2019 - 2024. All rights reserved.