From e135038e66c9d5f26159d5a2d644efdeda3024fb Mon Sep 17 00:00:00 2001 From: Bitcollage Date: Sat, 28 Jan 2017 16:17:47 +0100 Subject: [PATCH] Fix "Error" when using jspm v0.17.0-beta.35 jspm v0.17.0-beta.35 throw an error when it used with karma-jspm v2.2.0: ```bash Uncaught Error: Setting `SystemJS.bundles` directly is no longer supported. Use `SystemJS.config({ bundles: ... })`. ``` This commit will solve this issue. Instead of `System.bundles = [];`, `System.config({ bundles: [] });` should be used. --- src/adapter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adapter.js b/src/adapter.js index 53c4725..6e159f0 100644 --- a/src/adapter.js +++ b/src/adapter.js @@ -48,7 +48,7 @@ // Exclude bundle configurations if useBundles option is not specified if (!karma.config.jspm.useBundles) { - System.bundles = []; + System.config({ bundles: [] }); } // Load everything specified in loadFiles in the specified order