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 -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -