1

我已经安装了 ng-dynamic 但无法继续使用。我不断在控制台中收到此错误。找不到任何修复。试图在 systemjs.config.js 文件中以不同的方式引用:

'ng-dynamic': 'npm:ng-dynamic/index.js'

'ng-dynamic': 'node_modules/ng-dynamic/index.js'

'ng-dynamic': ' https://unpkg.com/ng-dynamic@2.0.0/index.js '

什么问题?

错误:

 1.GET http://localhost:3000/traceur 404 (Not Found) Error: (SystemJS) XHR error (404 Not Found) loading http://localhost:3000/traceur

 2.Error: XHR error (404 Not Found) loading http://localhost:3000/traceur at XMLHttpRequest.wrapFn [as
 _onreadystatechange] (http://localhost:3000/node_modules/zone.js/dist/zone.js:889:29) [] at
 Zone.runTask
 (http://localhost:3000/node_modules/zone.js/dist/zone.js:151:47) [ =>
 ] at XMLHttpRequest.ZoneTask.invoke
 (http://localhost:3000/node_modules/zone.js/dist/zone.js:345:33) []
 Error loading http://localhost:3000/traceur Unable to load transpiler
 to transpile http://localhost:3000/node_modules/ng-dynamic/index.js
 Error loading http://localhost:3000/node_modules/ng-dynamic/index.js
 as "ng-dynamic" from http://localhost:3000/app/app.module.js at
 XMLHttpRequest.wrapFn [as _onreadystatechange]
 (http://localhost:3000/node_modules/zone.js/dist/zone.js:889:29) [] at
 Zone.runTask
 (http://localhost:3000/node_modules/zone.js/dist/zone.js:151:47) [ =>
 ] at XMLHttpRequest.ZoneTask.invoke
 (http://localhost:3000/node_modules/zone.js/dist/zone.js:345:33) []
 Error loading http://localhost:3000/traceur Unable to load transpiler
 to transpile http://localhost:3000/node_modules/ng-dynamic/index.js
 Error loading http://localhost:3000/node_modules/ng-dynamic/index.js
 as "ng-dynamic" from http://localhost:3000/app/app.module.js
4

0 回答 0