Closed
Description
1. OS : Windows 7
2. Versions.
angular2-in-memory-web-api": "0.0.14
angular-cli: local (v1.0.0-beta.10, branch: master)
commit d5e1c55ecb5d3cc7853bf575e5dc6f72902ec4ef: "build: Use webpack as our backend for building CLI apps."
3. Repro steps.
code of app bootstraping :
import { XHRBackend, HTTP_PROVIDERS } from '@angular/http';
import { InMemoryBackendService, SEED_DATA } from 'angular2-in-memory-web-api';
bootstrap(AppComponent, [
HTTP_PROVIDERS,
{ provide: XHRBackend, useClass: InMemoryBackendService },
{ provide: SEED_DATA, useClass: HeroData }
HTTP_PROVIDERS,
AppRouterProviders
])
4. The log given by the failure.
WARNING in ./~/angular2-in-memory-web-api/http-status-codes.js
Cannot find SourceMap 'http-status-codes.js.map': Error: Can't resolve './http-status-codes.js.map' in '\node_modules\angular2-in-memory-web-api'
@ ./~/angular2-in-memory-web-api/index.js 6:9-39
@ ./src/main.ts
@ multi main
5. Mention any other details that might be useful.
I think that such things can be solved using webpack configuration, but I don't know where to modify the webpack configuration file in a project generated with angular-cli
Metadata
Metadata
Assignees
Labels
No labels