Angular 2 - 404 traceur not found

后端 未结 17 3141
故里飘歌
故里飘歌 2020-12-03 02:34

I\'ve followed the starting guide and expanded a little upon for a previous angular 2 version. I\'ve updated my revision and changed everything accordingly. When I am runnin

17条回答
  •  鱼传尺愫
    2020-12-03 03:00

    Because of version change it throws 404 error. to resolve this issue we need to do below modifications in systemjs.config.js file:

    1. replace npm:angular-in-memory-web-api/ with npm:angular-in-memory-web-api/bundles/in-memory-web-api.umd.js. in map.

    2. remove below code in packages:

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

提交回复
热议问题