Questions tagged [systemjs]

Spec-compliant universal module loader - loads ES6 modules, AMD, CommonJS and global scripts.

Designed as a small collection of extensions to the ES6 specification System loader, which can be applied individually or all together.

Features include:

  • Core: Some small fixes to the spec loader behavior.
  • Formats: Dynamically load AMD, CommonJS and global scripts (as well as ES6 modules) - detecting the format automatically, or with format hints.
  • Map: Map configuration.
  • Versions: Multi-version support for semver compatible version ranges (@^1.2.3 syntax).
  • Plugins: A dynamic plugin system for modular loading rules.
  • Bundles: Dynamically link requires to bundle files.

Designed to work with the ES6 Module Loader polyfill (15KB minified) for a combined footprint of 27KB. In future, with native implementations, the ES6 Module Loader polyfill should no longer be necessary. As jQuery provides for the DOM, this library can smooth over inconsistiencies and missing practical functionality provided by the native System loader.

Runs in the browser and NodeJS.


Useful links

1398 questions
0
votes
2 answers

Execute a test inside a callback

Is possible to execute a test that lies within a callback? For example I have System.import("mymodule").then(function(Mymodule) { describe("Mymodule", function() { it("does something", function() { …
Francesco Belladonna
  • 11,361
  • 12
  • 77
  • 147
0
votes
1 answer

Angular2 + System.js - make all files load locally

I'm making Angular2 app, and the main HTML is this one: App
pesho hristov
  • 1,946
  • 1
  • 25
  • 43
0
votes
1 answer

Bundling an Angular2 app using JSPM

I am trying to create a bundle for an Angular2 app. Here is my jspm config file: https://gist.github.com/ivanbatic/fa4f2d76b44e0204f21d When I start the app, although it starts 390 HTTP requests in order to render the "Hello World" string, it works.…
Ivan Batić
  • 476
  • 2
  • 8
0
votes
1 answer

aurelia-bootstrapper not found after upgrading to jspm beta

I've upgrade to the latest JSPM sudo npm install -g jspm@beta And reinstalled all packages by deleting the jspm_modules folder and running jspm install jspm dl-loader Now when I start my Aurelia project, I get the following output GET…
Matthew James Davis
  • 12,134
  • 7
  • 61
  • 90
0
votes
1 answer

How to set up script tags for angularjs 2 written in Es6 for transpilation to Es5

Below is from a plunker that started from the angularjs 2 es6 template http://goo.gl/IGaTZw I added traceur and removed the main.es6.js replacing with main.js in case the implicit mode was interfering.
user487779
  • 550
  • 5
  • 12
0
votes
1 answer

Angular + ES6 modules: controller function undefined

I'm struggling with my first use of jspm, and need a quick point in the right direction. (I've loaded ES6 classes before but only as part of concatenated files.) This is an extract of my bootstrapping code import angular from 'angular'; import…
Simon H
  • 20,332
  • 14
  • 71
  • 128
0
votes
1 answer

Angular and ES6: Karma Testing with SystemJS

Afternoon all, I have a MEAN stack app that I am developing tests for. The Angular code is written using ES6 so I have been trying to configure Karma and SystemJS with Babel as the transpiler to run my tests. Currently, when I karma start…
datatype_void
  • 433
  • 5
  • 23
0
votes
1 answer

Typescript file exporting interfaces comes up 404 using JSPM

I'm using Typescript 1.5. I started using jspm. I have a few files that just consist of interface exports. In my tsconfig the module is set to 'system'. It seems to not like files that are just exporting interfaces. It's giving me 404 errors,…
Robert Baker
  • 25,593
  • 1
  • 20
  • 21
0
votes
2 answers

How do I configure my index.html with Systemsj to use an existing bundle?

I have a small TypeScript helloworld application that uses the aurelia.io framework from a bundle file and configured using SystemJS. When I run my app, the compiled typescript version of my helloworld.ts throws an error which reads: TypeError:…
bedo
  • 866
  • 8
  • 15
0
votes
1 answer

How to configure SystemJS to get new instances of modules loading into a Jasmine test suite

We have been using RequireJS, Bower and npm for quite some time. Now we are very impressed with jspm and SystemJS. We like that they: work with AMD minimizing the pain of converting our existing code allow us to write ES2015 modules utilizing…
cResults
  • 733
  • 1
  • 5
  • 17
0
votes
1 answer

Babel.js was not loaded on Systemjs's transpiler

In using babel as transpiler of systemjs, I encountered this error at chrome console. Potentially unhandled rejection [2] Error loading "test" at test.js Error evaluating test.js Uncaught SyntaxError: Unexpected token < (WARNING: non-Error used) I…
jeyraof
  • 863
  • 9
  • 28
0
votes
2 answers

Install SystemJs plugins in location

When I try to import a text file with import text from './some-text.txt!text'; I see the loader tries to fetch a text.js file from the root of the server. Can this location be different and can the plugin be installed with say jspm?
olanod
  • 30,306
  • 7
  • 46
  • 75
-1
votes
1 answer

Issue with Angular library (UMD) and dynamic loading

I have an Angular app that contains a load button. When you click the load button it renders a remote UMD library. The first time I click the load button I have the following error while importing my library using SystemJS: core.js:15714 ERROR…
Cyril
  • 161
  • 2
  • 22
-1
votes
2 answers

Syncfusion ej2-angular-calendars package need to be mapped in systemjs.config.js but this file doesn't exists anymore in Angular-cli

I'm trying to create a datePicker component from Syncfusion in a project I'm working on. The problem is that Syncfusion ej2-angular-calendars package need to be mapped in systemjs.config.js configuration file that doesn't exists anymore in…
mrbangybang
  • 683
  • 1
  • 9
  • 22
-1
votes
2 answers

Unexpected Token "<" when Importing BrowserAnimationsModule with Angular 5

I'm attempting to add the BrowserAnimationModule to my Angular 5 project and I seem to be having an incredibly stupid error occurring. Error: (SystemJS) Unexpected token < SyntaxError: Unexpected token < at eval () at…
yarz-tech
  • 284
  • 2
  • 6
  • 18