Skip to content Skip to sidebar Skip to footer

Simple Angular 2 App Gives "potentially Unhandled Rejection" Error

I have this very basic example: index.html: FlyLeaf

Solution 1:

For what I can see the error, you are missing traceur which will let you to use annotations

So add this in your HTML (see that is even added in the docs under 6. Declare the HTML)

<scriptsrc="https://github.jspm.io/jmcriffey/bower-traceur-runtime@0.0.87/traceur-runtime.js"></script>

and in your System.config add these options

System.config({traceurOptions: {
       annotations:true,
       types:true,
       memberVariables:true
   },//...

Finally, as a recommendation, use the System.import like this

System.import("your.app").catch(console.log.bind(console));

With this you'll be able to catch some more errors.

Give it a try and you should good to go.

Post a Comment for "Simple Angular 2 App Gives "potentially Unhandled Rejection" Error"