-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not find source map #1117
Comments
I just had a similar issue in my own personal starter (which is heavily inspired by this one). For me it was fixed to changing the istanbul-instrumenter-loader back to 0.2.0. |
Changing istanbul-instrumenter-loader back to 0.2.0. didn't work for me :( |
This should definitely be fixed as in the current state, coverage-reports are not working properly. Reverting instanbul-instrumenter-loader to 0.2.0 worked for me, too. |
@miguelramos @eXaminator @nekkon @ClemensSchneider - For the sake of keeping discussion in the same place, I am going to close this in favor of continuing the discussion in #1188 I'm working on solving this problem, any further insights please comment in the issue above. @eXaminator - Unfortunately just locking |
Setting strict "0.5.0" version for "karma-remap-istanbul" package helps me. |
Note: for support questions, please use one of these channels: Chat: AngularClass.slack or Twitter: @AngularClass
[x] bug report
[ ] feature request
[ ] question about the decisions made in the repository
Bug
Remap istanbul on branch aot cannot find sourcemap.
Shouldn't show message of cannot find source map.
node_ENV=test npm run test
START:
webpack: bundle is now VALID.
webpack: bundle is now INVALID.
webpack: bundle is now VALID.
19 10 2016 23:27:34.696:INFO [karma]: Karma v1.3.0 server started at http://localhost:9876/
19 10 2016 23:27:34.700:INFO [launcher]: Launching browser Chrome with unlimited concurrency
19 10 2016 23:27:34.826:INFO [launcher]: Starting browser Chrome
19 10 2016 23:27:38.593:INFO [Chrome 53.0.2785 (Mac OS X 10.11.6)]: Connected on socket /#hXpvzwGbOUGvK2_tAAAA with id 13889031
Finished in 0.042 secs / 0.007 secs
SUMMARY:
✔ 1 test completed
Error: Could not find source map for: "/Users/miguelramos/Public/platform/src/app/core/configurator.ts"
at /Users/miguelramos/Public/platform/node_modules/remap-istanbul/lib/remap.js:257:11
at Array.forEach (native)
at /Users/miguelramos/Public/platform/node_modules/remap-istanbul/lib/remap.js:214:22
at Array.forEach (native)
at remap (/Users/miguelramos/Public/platform/node_modules/remap-istanbul/lib/remap.js:213:12)
at RemapCoverageReporter.onCoverageComplete (/Users/miguelramos/Public/platform/node_modules/karma-remap-coverage/remap-coverage.js:23:23)
at Server. (/Users/miguelramos/Public/platform/node_modules/karma/lib/events.js:13:22)
at emitTwo (events.js:106:13)
at Server.emit (events.js:191:7)
at InMemoryReport.writeReport (/Users/miguelramos/Public/platform/node_modules/karma-coverage/lib/in-memory-report.js:14:22)
at writeReport (/Users/miguelramos/Public/platform/node_modules/karma-coverage/lib/reporter.js:68:16)
at /Users/miguelramos/Public/platform/node_modules/karma-coverage/lib/reporter.js:290:11
at Array.forEach (native)
at Collection.forEach (/Users/miguelramos/Public/platform/node_modules/karma/lib/browser_collection.js:93:21)
at /Users/miguelramos/Public/platform/node_modules/karma-coverage/lib/reporter.js:247:16
at Array.forEach (native)
Error: Could not find source map for: "/Users/miguelramos/Public/platform/src/app/environment.ts"
at /Users/miguelramos/Public/platform/node_modules/remap-istanbul/lib/remap.js:257:11
at Array.forEach (native)
at /Users/miguelramos/Public/platform/node_modules/remap-istanbul/lib/remap.js:214:22
at Array.forEach (native)
at remap (/Users/miguelramos/Public/platform/node_modules/remap-istanbul/lib/remap.js:213:12)
at RemapCoverageReporter.onCoverageComplete (/Users/miguelramos/Public/platform/node_modules/karma-remap-coverage/remap-coverage.js:23:23)
at Server. (/Users/miguelramos/Public/platform/node_modules/karma/lib/events.js:13:22)
at emitTwo (events.js:106:13)
at Server.emit (events.js:191:7)
at InMemoryReport.writeReport (/Users/miguelramos/Public/platform/node_modules/karma-coverage/lib/in-memory-report.js:14:22)
at writeReport (/Users/miguelramos/Public/platform/node_modules/karma-coverage/lib/reporter.js:68:16)
at /Users/miguelramos/Public/platform/node_modules/karma-coverage/lib/reporter.js:290:11
at Array.forEach (native)
at Collection.forEach (/Users/miguelramos/Public/platform/node_modules/karma/lib/browser_collection.js:93:21)
at /Users/miguelramos/Public/platform/node_modules/karma-coverage/lib/reporter.js:247:16
at Array.forEach (native)
=============================== Coverage summary ===============================
Statements : 59.68% ( 37/62 )
Branches : 25% ( 5/20 )
Functions : 53.85% ( 7/13 )
Lines : 62.07% ( 36/58 )
The text was updated successfully, but these errors were encountered: