Skip to content
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

Breaking changes in dependency source-map #3557

Closed
puppe opened this issue Sep 3, 2020 · 4 comments · Fixed by karronoli/redpen#10 · May be fixed by PDSSnyk/juice-shop#74
Closed

Breaking changes in dependency source-map #3557

puppe opened this issue Sep 3, 2020 · 4 comments · Fixed by karronoli/redpen#10 · May be fixed by PDSSnyk/juice-shop#74

Comments

@puppe
Copy link

puppe commented Sep 3, 2020

As of commit 5db46b7, Karma uses version ^0.7.3 of source-map. Version 0.7.0 had introduced several breaking changes. At least one of those breaks error reporting in Karma when source maps are used:

Breaking change: new SourceMapConsumer now returns a Promise object
that resolves to the newly constructed SourceMapConsumer instance, rather
than returning the new instance immediately.

This invariably results in the following error message whenever a test fails:

SourceMap position not found for trace: …
@puppe
Copy link
Author

puppe commented Sep 3, 2020

PS: The exception is thrown here, when originalPositionFor is called because getSourceMapConsumer now returns a Promise of a SourceMapConsumer instead of a SourceMapConsumer.

@devoto13
Copy link
Collaborator

devoto13 commented Sep 3, 2020

Thanks for a report. Would you be willing to send a PR to rollback to a previous version of source-map as a temporary workaround?

@puppe
Copy link
Author

puppe commented Sep 3, 2020

No problem. See #3558.

devoto13 added a commit to devoto13/karma that referenced this issue Sep 3, 2020
As it contains a breaking change per karma-runner#3557.
johnjbarton pushed a commit that referenced this issue Sep 8, 2020
As it contains a breaking change per #3557.
karmarunnerbot pushed a commit that referenced this issue Sep 8, 2020
## [5.2.2](v5.2.1...v5.2.2) (2020-09-08)

### Bug Fixes

* revert source-map update ([#3559](#3559)) ([d9ba284](d9ba284)), closes [#3557](#3557)
@johnjbarton
Copy link
Contributor

Fixed by PR #3559

anthony-redFox pushed a commit to anthony-redFox/karma that referenced this issue May 16, 2023
anthony-redFox pushed a commit to anthony-redFox/karma that referenced this issue May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants