无法加载转换器来转换http:// localhost:3000 / node_modules / ng-dynamic / index.js

时间:2017-01-18 09:55:52

标签: angular dynamic-compilation

我已经安装了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

0 个答案:

没有答案