Angular2 Tutorial (Tour of Heroes): Cannot find module 'angular2-in-memory-web-api'

前端 未结 29 2296
青春惊慌失措
青春惊慌失措 2020-11-29 06:25

I have followed the Tutorial. After changing app/maint.ts in the Http chapter I get the error when starting the app via command line:

ap

29条回答
  •  佛祖请我去吃肉
    2020-11-29 06:58

    For me the only solution was to upgrade angular2-in-memory-web-api to 0.0.10.

    In package.json set

    'angular2-in-memory-web-api': '0.0.10'
    

    in the dependecies block, and in systemjs.config.js set

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

    in the packages object.

提交回复
热议问题