2017-01-10 33 views
3

我有一個角2版本(2.0.1)應用程序在Chrome中工作正常,但投在Internet Explorer 11以下錯誤:角2版本(2.0.1)的Internet Explorer(SystemJS)語法錯誤

Error: (SystemJS) Syntax error 
    SyntaxError: Syntax error 
     at Anonymous function (eval code:11:1) 
     at Anonymous function (eval code:1:31) 
     at eval code (eval code:1:2) 
    Evaluating http://localhost:56159/areas/dashboard/modules/app.module.js 
    Evaluating http://localhost:56159/areas/dashboard/dashboard.js 
    Error loading http://localhost:56159/areas/dashboard/dashboard.js 
    { 
     [functions]: , 
     __proto__: { }, 
     description: "(SystemJS) Syntax error 
    SyntaxError: Syntax error 
     at Anonymous function (eval code:11:1) 
     at Anonymous function (eval code:1:31) 
     at eval code (eval code:1:2) 
    Evaluating http://localhost:56159/areas/dashboard/modules/app.module.js 
    Evaluating http://localhost:56159/areas/dashboard/dashboard.js 
    Error loading http://localhost:56159/areas/dashboard/dashboard.js", 
     message: "(SystemJS) Syntax error 
    SyntaxError: Syntax error 
     at Anonymous function (eval code:11:1) 
     at Anonymous function (eval code:1:31) 
     at eval code (eval code:1:2) 
    Evaluating http://localhost:56159/areas/dashboard/modules/app.module.js 
    Evaluating http://localhost:56159/areas/dashboard/dashboard.js 
    Error loading http://localhost:56159/areas/dashboard/dashboard.js", 
     name: "Error", 
     originalErr: { }, 
     stack: "(SystemJS) Syntax error 
    SyntaxError: Syntax error 
     at Anonymous function (eval code:11:1) 
     at Anonymous function (eval code:1:31) 
     at eval code (eval code:1:2) 
    Evaluating http://localhost:56159/areas/dashboard/modules/app.module.js 
    Evaluating http://localhost:56159/areas/dashboard/dashboard.js 
    Error loading http://localhost:56159/areas/dashboard/dashboard.js" 
    } 

我的index.html有:

<script src="./node_modules/core-js/client/shim.min.js"></script> 
<script src="./node_modules/zone.js/dist/zone.js"></script> 
<script src="./node_modules/reflect-metadata/Reflect.js"></script> 
<script src="./node_modules/systemjs/dist/system.src.js"></script> 

我已經看到了有關不同IE墊片一對夫婦的建議和職位,但他們都是早期版本的角2.

有什麼建議?

回答

0

這是預請求數的順序我用我的Angular2 2.4.5應用
(也與以前的版本Angular2的工作):

node_modules/core-js/client/core.min.js (version 2.4.1)  
node_modules/reflect-metadata/Reflect.js (version 0.1.9) 
node_modules/systemjs/dist/system.src.js (version 0.19.42) 
node_modules/zone.js/dist/zone.js (version 0.7.6)