Skip to content

Commit

Permalink
Fix "Error" when using jspm v0.17.0-beta.35
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
SerkanSipahi authored Jan 28, 2017
1 parent 888064a commit e135038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e135038

Please sign in to comment.