Questions tagged [jspm]

jspm is a package manager for the SystemJS universal module loader, built on top of the dynamic ES6 module loader.

With jspm load any module format (ES6, AMD, CommonJS and globals) directly from any endpoint such as npm and github with flat versioned dependency management. Any custom endpoints can be created through the Endpoint API.
For development, load modules as separate files with ES6 and plugins compiled in the browser.
For production, optimize into a bundle, layered bundles or a self-executing bundle with a single command.

546 questions
5
votes
0 answers

JSPM loading the same dependency from different two sources - npm:angular-material depends on github:bower-angular

I have an Angular 1.5.5 project that uses jspm to fetch and bundle all front-end dependencies - angular, angular-material, angular-adal, ngcomponentrouter etc. We're resolving all of these dependencies using the npm: endpoint. The issue arises when…
Squiggle
  • 2,427
  • 1
  • 18
  • 22
5
votes
2 answers

Using non-npm(legacy) javascript library with Jspm

I'm trying to integrate this library which is non-npm. I failed many times already as I always thrive for using some modern framework which makes it impossible for me to integrate. I tried backbone.js with require.js, even Dart and now I'm…
Zveratko
  • 2,663
  • 6
  • 35
  • 64
5
votes
2 answers

Angular2 + typescript + jspm : No provider for Http ( App -> Provider -> Http )

I trying migrate from Webpack to JSPM with system.js. We have simple App component. I was fallowing this article Angular 2 Starter Setup with JSPM, SystemJS and Typescript in atom (Part 1) import {Component} from 'angular2/core'; import {Bus} from…
m1uan
  • 528
  • 6
  • 16
5
votes
0 answers

"Envify" React using JSPM

I am using JSPM to build a React application. While bundling the solution during build, I'd like to "envify" the entire solution (my codebase plus any libs such as React) using something like NODE_ENV=production jspm bundle ./src/main…
Gerson Goulart
  • 584
  • 6
  • 14
5
votes
2 answers

Flux threw Dispatcher is not a constructor

I try to use jspm with reactjs. I worked fine. But when I integrated it with flux package from npm. Then it always threw Dispatcher is not a constructor error. My code as below AppDispatcher.js import Flux from 'flux'; export default new…
thangchung
  • 2,020
  • 2
  • 17
  • 28
5
votes
1 answer

Why do I get a 404 message from Karma webserver?

At the moment, I'm trying to setup a demo project with Node/AngularJs/JSPM with ES6 transpiler Babel and Karma. The serving part is working. I need to improve it later but the first 'hello world' from angular is working. I'd like to add Karma to run…
AWolf
  • 8,770
  • 5
  • 33
  • 39
5
votes
3 answers

Aurelia build on VSO Hosted Build Controller

I am trying to get a build going for Aurelia on VSO Hosted Build Controller. I created a small powershell script to run the following commands npm install .node_modules/.bin/jspm cc .node_modules/.bin/jspm install -y .node_modules/.bin/gulp build I…
Sujesh Arukil
  • 2,469
  • 16
  • 37
5
votes
1 answer

when you install a githup repo using jspm how to tell it what zip release to get or instead to clone repo

1) Does it clone the repo or does it pull from releases? From what I can tell it is pulling from releases. 2) Can this be overriden via options in the same way you specify @version for a specific version. ie I want to pull a specific zip from a…
dan
  • 2,857
  • 6
  • 34
  • 60
5
votes
1 answer

Using SASS with Aurelia's Skeleton Navigation project

var gulp = require('gulp'); var sass = require('gulp-sass'); var runSequence = require('run-sequence'); var changed = require('gulp-changed'); var plumber = require('gulp-plumber'); var to5 = require('gulp-babel'); var sourcemaps =…
dan
  • 2,857
  • 6
  • 34
  • 60
5
votes
1 answer

jspm: Error when importing a jQuery plugin

I'm trying to import a jQuery plugin (namely https://github.com/Mottie/Keyboard) using jspm/SystemJS. At first, I installed the module by simply typing the following command: jspm install github:mottie/keyboard I then added the line to import the…
kant312
  • 1,114
  • 1
  • 15
  • 28
4
votes
1 answer

jspm init returns "jspm init has not yet been implemented"

I just installed jspm globally using npm on Mac OS (sudo npm install jspm -g). Now when I run jspm init, I see the following console output: err (jspm) jspm init has not yet been implemented. When I run jspm I get the following…
bgh
  • 1,986
  • 1
  • 27
  • 36
4
votes
1 answer

After bundling my aurelia app I get a: No PLATFORM.Loader error

After bundling a simple aurelia application with jspm bundle-sfx I get the following error: No PLATFORM.Loader is defined and there is neither a System API (ES6) or a Require API (AMD) globally available to load your app. An example application:…
Mr. Baudin
  • 2,104
  • 2
  • 16
  • 24
4
votes
1 answer

Webpack vs SystemJs/JSPM

I was using SystemJs with JSPM for all my profjects and it feels soo amazing. It is easier as never before to use frontend libraries, with JSPM I can do it in few simple steps: command line: jspm install angular index.ts|js: import * as angular…
Andzej Maciusovic
  • 4,306
  • 1
  • 29
  • 40
4
votes
1 answer

JSPM bundle doesn't load HTML files

I'm using jspm bundle command to bundle up all of my third-party libs. jspm bundle app.js - [**/*] ./scripts/bundles/vendor.js --inject --minify The bundle is created as expected. For some reason when using the bundle my HTML stopped being…
Shahar Kazaz
  • 1,146
  • 1
  • 9
  • 21
4
votes
2 answers

Importing angular-translate imports an empty object

I'm using JSPM 0.16.42 which uses SystemJS, I've tried both angular-translate and angular-route, both of which are on github endpoints. However, for both of them angular throws the same error argument module is not a function when using them in…
Robin-Hoodie
  • 4,886
  • 4
  • 30
  • 63