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
-1
votes
1 answer

SystemJs Ignores Angular Dependency Bundle

I am trying to get my angular application to the point where it is ready for distribution and I have managed to create 2 bundles, one for my angular application and one for my dependencies (which include the angular framework and the rxjs…
Igor
  • 60,821
  • 10
  • 100
  • 175
-1
votes
1 answer

Prevent ng-cli to associate css with components

I'm trying to migrate an app which was using SystemJS to ng-cli environment. I don't want to change too much the structure of the app, and beside, I dont use a css file for each component, I want to keep it global. When I run ng serve, I get the…
Adam S
  • 1,021
  • 1
  • 14
  • 25
-1
votes
1 answer

Angular 2 systemjs

I do not understand very well systemjs I am having problems when trying to import by angular It works well Import {UtilClass} from './shared/util.class'; I have a component in another folder but if I try to load it Import {UtilClass} from…
Hector Bayona
  • 97
  • 1
  • 2
  • 6
-1
votes
1 answer

Path problems w/angular 2, SystemJS, node_modules

I have a small Angular 2.0 app. It runs fine on my machines ;-) It uses SystemJS and I have a gulp build for it. The problem is when I deploy it to a sub-directory it is look at the root directory for node-modules. It should be looking…
-1
votes
1 answer

Trying to use this library in my angular 2 app

I'm trying to figure out how to import this library into my angular 2 application. I've tried many things but can't seem to get it to work. Below is my partial systemjs.config.js System.config({ paths: { // paths serve as alias …
Mike
  • 826
  • 11
  • 31
-1
votes
1 answer

Unable to properly configure systemjs-builder with gulp

I'm trying to generate a static bundle of my angular 2 app (my goal is to have a single minified js file to import with a script tag without systemjs). My app has the following (simplified) structure: MyProject/ app/ monitoring/ …
daveoncode
  • 18,900
  • 15
  • 104
  • 159
-1
votes
1 answer

SystemJs video for Node server

Please suggest a good video (maybe with github example) on systemjs for server side (nodejs). Should cover basics of systemjs jspm integration ecmascript simple web server
shrw
  • 1,719
  • 5
  • 27
  • 50
-1
votes
1 answer

Nodejs lightweight framework

Looking for a framework in Node.js Which is lightweight [low memory footprint] Support Rest, with request and response headers http request Supports Fibers Supports local npm packages Lightest weight testing framework Not sure i should be adding…
shrw
  • 1,719
  • 5
  • 27
  • 50
-1
votes
1 answer

Uncaught ReferenceError: require is not defined on 'angular2/platform/browser'

Visual Studio 2015 update 1 TypeScript 1.7 Angular2 beta I'm trying to create an angular2 demo and I can't seem to get things working just right. I'm getting the error "Uncaught ReferenceError: require is not defined" on the "import { bootstrap }…
user3448990
  • 323
  • 6
  • 15
-2
votes
1 answer

Use Environment variables without Angular CLI

I am not using cli in my project. It is using system js builder to bundle stuff and node lite serve to serve contents. I am trying figure out if there is a way I can use environment variables in my project just like a regular cli project. like npm…
Aj1
  • 953
  • 2
  • 15
  • 42
-2
votes
2 answers

SystemJS not working as espected

I am creating an public extension for angular2+ community, and the demo won´t run as espected, maybe i am doing something wrong, the error is: Fetch error: 404 Not Found Instantiating http://localhost:3000/typescript Loading typescript Unable to…
Tiago Diaz
  • 21
  • 7
-2
votes
1 answer

How do I build Angular 2 for production using Systemjs?

Reading the various sites for building your Angular 2 project for production, there is a tool named Systemjs builder, but it doesn't seem to be a helpful, new developer friendly resource about where to start. How do I go about building my code…
user3334871
  • 1,251
  • 2
  • 14
  • 36
-2
votes
1 answer

systemjs variable from another file

I have two javascript files in my project. One (index.js) declares the Material object and the other (nav.js) adds a method to Material. I am using SystemJS to import both of these into my HTML page. When the page loads I am getting an error from…
krummens
  • 837
  • 2
  • 17
  • 38
-2
votes
1 answer

Angular2: (SystemJS) Unexpected token ] SyntaxError: Unexpected token ]?

I've been stepping through the tutorial on Angulars own homepage (the tour of heroes) to learn Angular 2 but have stumbled upon a problem when doing the chapter about Services. When running the app I get the above error message which I can't find…
Sajruss
  • 37
  • 7
-2
votes
1 answer

Require not working ( SystemJS)

I am very new to systemJS and trying to explore it. Cant we call require as shown in the below inside HTML. When i call require() function inside JS files it loads JS file properly but inside HTML file it does not work.. Below is the SystemJS code…
Shivprasad Koirala
  • 27,644
  • 7
  • 84
  • 73
1 2 3
93
94