Uncaught (in promise) TypeError: object is not a constructor(…) in ionic2

Uncaught (in promise) TypeError: object is not a constructor(…) in ionic2

在使用 ionic2 运行 基本应用程序时,它也会给出如下错误:Uncaught (in promise) TypeError: object is not a constructor(...) in ionic2。


创建新应用:ionic start appname tutorial --v2

运行 应用:离子服务

我的系统规格:

Ubuntu:14.04(64 位)

Chrome:版本 49.0.2623.87(64 位)

节点:v5.6.0

npm : v3.6.0

请参阅here. It shows up with a particular Chrome Canary version, and it seems due to es6-shim. It has been reported to have been fixed in es6-shim v0.34. Or you can switch to core-js shim, as mentioned here

但是,如果您使用的某些库(如 Ionic)依赖于特定的 es6-shim 版本,我想您会等待库更新。