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

c# SetCompatibleTextRenderingDefault must be called before the first -

C#.NET Oracle.ManagedDataAccess ConfigSchema.xsd -

c++ - Fill runtime data at compile time with templates -