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

ReferenceError when using RequireJS #28

Open
jjoekoullas opened this issue Jun 13, 2019 · 2 comments
Open

ReferenceError when using RequireJS #28

jjoekoullas opened this issue Jun 13, 2019 · 2 comments

Comments

@jjoekoullas
Copy link

source-map-support doesn't install a global when using RequireJS - this causes client.js to throw a ReferenceError: sourceMapSupport is not defined.

@dougouk
Copy link

dougouk commented Mar 10, 2020

I have the same issue.

@Samuel-Therrien-Beslogic

Temporary workaround using patch-package:
patches/karma-source-map-support+1.4.0.patch

diff --git a/node_modules/karma-source-map-support/lib/client.js b/node_modules/karma-source-map-support/lib/client.js
index c28d40b..5e28218 100644
--- a/node_modules/karma-source-map-support/lib/client.js
+++ b/node_modules/karma-source-map-support/lib/client.js
@@ -1 +1,2 @@
-sourceMapSupport.install();
+// https://github.com/tschaub/karma-source-map-support/issues/28
+if (typeof sourceMapSupport  !== 'undefined') sourceMapSupport.install();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants