当前位置: 首页 > 工具软件 > Zone.js > 使用案例 >

Angularjs2-zone.js:1382 GET http://localhost:3000/traceur 404 (Not Found)

顾琛
2023-12-01

zone.js:1382 GET http://localhost:3000/traceur 404 (Not Found)

按照 angularjs2 英雄指南,磕磕绊绊走到了http这一步,然后被这个错误秒杀了。

解决方案:

In systemjs.config.js you should change the mapping to:

'angular-in-memory-web-api': 'npm:angular-in-memory-web-api/bundles/in-memory-web-api.umd.js'

then delete from packages:

'angular-in-memory-web-api': {
main: './index.js',
defaultExtension: 'js'
}

参考:stackoverflow

转载于:https://www.cnblogs.com/kuangniaokuang/p/6102022.html

 类似资料: