Description
Please provide us with the following information:
- OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Linux (Arch) - Versions. Please run
ng --version
. If there's nothing outputted, please run
in a Terminal:node --version
and paste the result here:
angular-cli: 1.0.0-beta.11-webpack
node: 6.3.1
os: linux x64 - Repro steps. Was this an app that wasn't created using the CLI? What change did you
do on your code? etc.
this is abit tricky, i've found the issue because i've installed @ngrx/store,
however, it is more general one.
at the moment, with the new webpack mode, one cannot exclude sourcemaps,
and not all node_modules have sourcemaps with them. - The log given by the failure. Normally this include a stack trace and some
more information.
WARNING in .//@ngrx/router/hooks.js/@ngrx/router/router-instruction.js 35:14-32
Cannot find source file '../../lib/hooks.ts': Error: Can't resolve '../../lib/hooks.ts' in '/home/hagai/a2z/gits/anipo/anipo-io/node_modules/@ngrx/router'
@ ./
@ ./~/@ngrx/router/index.js
@ ./src/app/app.routes.ts
@ ./src/main.ts
@ multi main
WARNING in .//@ngrx/router/match-pattern.js/@ngrx/router/redirect.js 19:22-48
Cannot find source file '../../lib/match-pattern.ts': Error: Can't resolve '../../lib/match-pattern.ts' in '/home/hagai/a2z/gits/anipo/anipo-io/node_modules/@ngrx/router'
@ ./
@ ./~/@ngrx/router/index.js
@ ./src/app/app.routes.ts
@ ./src/main.ts
@ multi main
WARNING in .//@ngrx/core/add/operator/enterZone.js/@ngrx/router/router-instruction.js 29:0-44
Cannot find source file '../../../../lib/add/operator/enterZone.ts': Error: Can't resolve '../../../../lib/add/operator/enterZone.ts' in '/home/hagai/a2z/gits/anipo/anipo-io/node_modules/@ngr
x/core/add/operator'
@ ./
@ ./~/@ngrx/router/index.js
@ ./src/app/app.routes.ts
@ ./src/main.ts
@ multi main
WARNING in .//@ngrx/core/compose.js/@ngrx/store-log-monitor/json-tree/types.js 2:16-45
Cannot find source file '../../lib/compose.ts': Error: Can't resolve '../../lib/compose.ts' in '/home/hagai/a2z/gits/anipo/anipo-io/node_modules/@ngrx/core'
@ ./
@ .//@ngrx/store-log-monitor/json-tree/json-tree.js/@ngrx/store-log-monitor/log-monitor/log-monitor-entry.js
@ ./
@ .//@ngrx/store-log-monitor/log-monitor/log-monitor.js/@ngrx/store-log-monitor/store-log-monitor.js
@ ./
@ ./~/@ngrx/store-log-monitor/index.js
@ ./src/main.ts
@ multi main
WARNING in .//@ngrx/core/operator/enterZone.js/@ngrx/core/add/operator/enterZone.js 3:18-53
Cannot find source file '../../../lib/operator/enterZone.ts': Error: Can't resolve '../../../lib/operator/enterZone.ts' in '/home/hagai/a2z/gits/anipo/anipo-io/node_modules/@ngrx/core/operato
r'
@ ./
@ .//@ngrx/router/router-instruction.js/@ngrx/router/index.js
@ ./
@ ./src/app/app.routes.ts
@ ./src/main.ts
@ multi main
- Mention any other details that might be useful.
as i'm familiar with webpack, i was able to find the config quickly and make a W/O
in models/webpack-build-common.ts file (getWebpackCommonConfig)
i've added "path.resolve(projectRoot, 'node_modules/@ngrx'),"
under loader source-map (line 32 here).
but i've opened the ticket because i think this is not proper,
the source map exclude should be controlled from the project itself.
(maybe add it to some config - not sure)
Thanks! We'll be in touch soon.