Search code examples
ionic2es6-shim

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.


create new app: ionic start appname tutorial --v2

running app: ionic serve

My system Specifications:

Ubuntu :14.04 (64bit)

Chrome :Version 49.0.2623.87 (64-bit)

Node : v5.6.0

npm : v3.6.0

enter image description here


Solution

  • Please see 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.

    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.