[英]Uncaught (in promise) TypeError: object is not a constructor(…) in ionic2
While using ionic2 running basic app also it's giving error like this: Uncaught (in promise) TypeError: object is not a constructor(…) in ionic2. 在使用ionic2运行基本应用程序时,它也会给出如下错误: 未捕获(在promise中)TypeError:object不是 ionic2中的构造函数(...) 。
create new app: ionic start appname tutorial --v2 创建新应用程序:ionic start appname tutorial --v2
running app: ionic serve 正在运行app:离子发球
My system Specifications: 我的系统规格:
Ubuntu :14.04 (64bit) Ubuntu:14.04(64位)
Chrome :Version 49.0.2623.87 (64-bit) Chrome:版本49.0.2623.87(64位)
Node : v5.6.0 节点:v5.6.0
npm : v3.6.0 npm:v3.6.0
Please see here . 请看这里 。 It shows up with a particular Chrome Canary version, and it seems due to es6-shim.
它显示了特定的Chrome Canary版本,似乎是由于es6-shim。 It has been reported to have been fixed in es6-shim v0.34 .
据报道,它已在es6-shim v0.34中修复。 Or you can switch to core-js shim, as mentioned here .
或者你也可以切换到核心JS垫片,提到这里 。
But if you're using some library (like Ionic) that depends on a particular es6-shim version, I guess you'd wait for library update. 但是如果你正在使用一些依赖于特定es6-shim版本的库(如Ionic),我想你会等待库更新。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.