Search code examples
javascriptangularxbox-one

Angular 2 error Map is not defined


I edited my question because it was not clear enough (I think)

I have a simple app in angular2 and I try to run it on Xbox (yes it's possible with the development kit and Visual Studio). I know it works with an angular 1.5 app because I already succeed. So, this is my stack trace when the code run (sorry my VS is partially in french) :

enter image description here

This is my index.html :

enter image description here

And this is my systemjs.config.js :

enter image description here

Because I need to push my app on Xbox I had all js files I need in my visual jsproject BUT I think I forgot one but I don't know which one so... If you have an idea. Thank you !! :)


Solution

  • My best guess is that you need to load the ES6 shim in your index.html file(as explained here).

    <script src="../node_modules/core-js/client/shim.min.js"></script>
    

    Place it before the zone.js script line(or even base.js).