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

Karma JSPM Horrible Trace Log

I have been setting up karma and jasmine on my angularjs 1.5 and jspm setup. Firstly all errors from karma the trace log is just coming from systemjs which makes it harder to debug. I am also getting a lot of Potentially unhandled rejection messages…
Timothy Ruhle
  • 7,387
  • 10
  • 41
  • 67
9
votes
2 answers

How does JSPM deal with CSS files?

I've been using bower for a while combined with wiredep but I want to switch to using the System.js loader. For this, JSPM is ideal. However, one of the things the combination of bower and wiredep was doing for me was also including the (S)CSS.…
Robin_f
  • 212
  • 2
  • 11
8
votes
2 answers

Component rendered as comment in VueJS + JSPM

I tried to build simple app using jspm with vue.js. This is my html file:
Krzysztof Atłasik
  • 21,985
  • 6
  • 54
  • 76
8
votes
1 answer

SystemJS (Aurelia with jspm) fails to load "aurelia-pal-browser" from jspm_packages folder

I've followed the instructions at https://www.danylkoweb.com/Blog/getting-started-with-aurelia-in-aspnet-mvc-EH, step 3-5 to install Aurelia in to my asp.net mvc core app (i.e. running npm install, jspm init, jspm install aurelia-framework and jspm…
Dan Pettersson
  • 713
  • 5
  • 17
8
votes
2 answers

"Namespacing" an import in systemJS

I want to use a library ip-address with SystemJS (note, this question may look similar but it is a different problem I ran into trying while trying to accomplish this task). The library ip-address depends on util-deprecate. It imports it as…
Pace
  • 41,875
  • 13
  • 113
  • 156
8
votes
1 answer

Production workflow with SystemJS and external dependencies hosted via CDN

I'm trying to figure out a good production workflow that plays nice with the development workflow. The need is to exclude 1MB of external libraries from the build, then use a CDN to host them separately. So we have this:
wayofthefuture
  • 8,339
  • 7
  • 36
  • 53
8
votes
2 answers

Using Angular 1.x with TypeScript 1.5 and SystemJS

I'm trying to use Angular 1.x with TypeScript 1.5.3 and SystemJS. The index.html page is set up to System.import('bootstrapper') which should start things up. bootstrapper.ts gets compiled to bootstrapper.js and works fine as long as it doesn't use…
adrian h.
  • 2,996
  • 3
  • 18
  • 24
8
votes
3 answers

how to fix 'jspm' is not recognized as an internal or external command, operable program or batch file

I install jspm in https://github.com/jspm/jspm-cli/wiki/Getting-Started. npm install jspm -g. It run. and I call it: jspm install, it not run,cmd notice "'jspm' is not recognized as an internal or external command, operable program or batch…
8
votes
1 answer

How to avoid adding the dependencies to config.js when installing JSPM plugins?

When I install the css plugin, using the following command: jspm install css The following is added to my config.js: System.config({ "map": { "css": "github:systemjs/plugin-css@0.1.6", "github:jspm/nodelibs-assert@0.1.0": { …
Carlos Mendes
  • 1,900
  • 1
  • 18
  • 33
7
votes
1 answer

TypeScript is adding Object.defineProperty(exports, "__esModule", { value: true }); throwing an error

I have recently updated typescript at the new version 2.2.1 after this I began to receive this error on the browser: Uncaught (in promise) Error: "exports is not defined" I noticed that typescript is adding this line after "use strict" at the…
Diego
  • 221
  • 1
  • 4
  • 12
7
votes
1 answer

JSPM Angular2-rc2 build animate error

So, building my angular2 project with JSPM for release: jspm bundle-sfx app dist/main.sfx.js. All fine, until I try to load the built app up in the browser. This is the error I get:` EXCEPTION: Error during instantiation of AnimationDriver!…
Rando Hinn
  • 1,255
  • 19
  • 41
7
votes
1 answer

Does bundling in systemjs make sense

I have set up a seed project with Angular 2 (RC.1) and system JS. I wanted to create a static single bundle for production and bundle everything except for my own code for development. This was my normal flow in past, before using systemjs. After…
Miroslav Jonas
  • 5,407
  • 1
  • 27
  • 41
7
votes
1 answer

d3 v4.0 custom build with ES6 modules

I'm experimenting with the alpha of d3 v4.0, and attempting to create a custom build, within a jspm setup. I can't seem to get my head around how the new modular build is intended to work. If I want to import a named export from a module, ie json…
amigolargo
  • 800
  • 2
  • 7
  • 24
7
votes
2 answers

Typescript Compiler error TS2307: Cannot find module 'jquery'

I was following JSPM getting started guide and I want to install jquery package so I execute below command. jspm install jquery But when I try to import it in typescript like below import $ from 'jquery' I'm getting a error from typescript compiler…
Shabith
  • 3,005
  • 3
  • 23
  • 20
7
votes
1 answer

Certificate error installing jspm package from github (caused by wrong cert path??)

Whilst my development environment works absolutely fine my build server is suffering with errors such as the following... although at some point it was all working fine too! warn Error on lookup for github:aurelia/event-aggregator Error: fatal:…
Phil
  • 2,232
  • 1
  • 26
  • 35
1 2
3
36 37