Why is my angular2 app crashing when trying to load angular-in-memory-web-api? -


i have been following along tour of heroes tutorial cannot start app when trying load angular-in-memory-web-api. there error thrown says

error: module parse failed: ...

you may need appropriate loader handle file type. |
return inmemorydataservice;

...

i have looked on why might occurring cannot find reason.

in dependencies section of package.json have included line

"angular-in-memory-web-api": "0.1.13"

i loading inmemorywebapimodule inmemorydataservice in app.module.ts.

import { inmemorywebapimodule } 'angular-in-memory-web-api'; import { inmemorydataservice } './inmemorydb/db/in-memory-data.service';

... imports[ ... inmemorywebapimodule.forroot(inmemorydataservice)

any thoughts why might occur?


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -