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
13
votes
4 answers

SystemJS: Why am getting error jquery_1.default is not a function when importing jquery

I have installed foundation via jspm install foundation, then import foundation and jquery. The problem I am having is that if I import jquery via import $ as 'jquery' I get the error jquery_1.default is not a function. If I import jquery via…
dan
  • 2,857
  • 6
  • 34
  • 60
13
votes
1 answer

Can I use JSPM without a transpiler?

I am using jspm 0.16.2. I am using this test project When I set the Transpiler to none: transpiler: "none" I get an error XHR error (404 Not Found) loading http://localhost:53404/none.js If I set the transpiler to 'test' it gives the same error,…
Greg Gum
  • 33,478
  • 39
  • 162
  • 233
13
votes
3 answers

Using jspm with TypeScript

Is it possible to combine jspm with TypeScript and the TypeScript module system? I couldn't find documentation or samples of this.
Klas Mellbourn
  • 42,571
  • 24
  • 140
  • 158
12
votes
1 answer

JSPM Server Error: Change occurred to a file outside SystemJS loading

I've got a JSPM managed app that works, but it will not auto-reload the changes in JSPM Server. Here's the simple index.html file:
mtyson
  • 8,196
  • 16
  • 66
  • 106
12
votes
3 answers

Component Initialization Infinite Loop - Angular 2 JSPM

Here is the full error. RangeError: Maximum call stack size exceeded at Injector._instantiate (http://localhost:8000/build.js:36366:63) at Injector._instantiateProvider (http://localhost:8000/build.js:36244:23) at Injector._new…
Dan Rasmuson
  • 5,705
  • 5
  • 29
  • 45
12
votes
2 answers

JSPM Bundle with TypeScript transpiler

I'm getting more into System.js and JSPM, where I've come to the point where I want to bundle my TypeScript source code into a JavaScript bundle. Now I can bundle my generated JavaScript code with something like: jspm bundle some/source/path…
Nicky
  • 3,607
  • 6
  • 33
  • 64
12
votes
1 answer

Typescript removes import statements not used in code

I am trying to use Typescript and jspm to make an angular app. The problem is when you want to ensure a .js file loaded, in jspm you have to write an import and it ensures the file will load before running your code. But Typescript removes my…
alisabzevari
  • 8,008
  • 6
  • 43
  • 67
11
votes
1 answer

JSPM vs WebPack for Angular 2

Recently I've used JSPM for my angular 2 projects and found it very simple and convenient to work with. Both when it comes to adding new modules, and creating a bundle for production use. It's basically just: jspm install…
Peter Salomonsen
  • 5,525
  • 2
  • 24
  • 38
11
votes
1 answer

es6-module default export importing as undefined

I'm not sure what I'm missing here. I'm working on a project using jspm and es6-module-loader. I've got an module defined as follows: import hooks from './hooks'; import api from './api'; import tools from './tools'; const StencilUtils = { …
flyingL123
  • 7,686
  • 11
  • 66
  • 135
10
votes
2 answers

Angular 2: Reduce app size (in addition to bundling/minification)

I have a small-medium size (~28 KB including just the (TypeScript transpiled) JS + HTML templates) Angular 2 app. It's based originally on the angular.io quickstart, but now I am bundling/minifying it using JSPM for deployment. The bundled JS file I…
Harry
  • 3,312
  • 4
  • 34
  • 39
10
votes
1 answer

How to deploy an ASP.NET 5 Aurelia app to Azure from VS2015

I'm trying to deploy an Aurelia application based on the ASP.NET 5 ES2016 navigation skeleton to Microsoft Azure using Web Deploy ([right-click] -> publish) from within Visual Studio 2015. But I can't get the depolyment to work. I've changed the…
Sergi Papaseit
  • 15,999
  • 16
  • 67
  • 101
10
votes
4 answers

Importing CSS and controlling order in using jspm and system.js

I've written the following in an Aurelia app import "bootstrap/css/bootstrap.css!"; import "./app.css!"; and I want app.css second in since it overrides bootstrap.css styles. However, I'm getting app.css first since I presume the system.js loader…
Phil
  • 2,232
  • 1
  • 26
  • 35
10
votes
1 answer

change jspm_packages location

Is there a .bowerrc equivalent in jspm? When I run jspm install, I'd like jspm to install the packages to client/jspm_packages folder. How can I configure jspm to change location of jspm_packages folder? Thanks
kind_robot
  • 2,383
  • 4
  • 31
  • 45
9
votes
1 answer

How to properly get Aurelia's TypeScript type definition files (*.d.ts) after TS 2.0. release?

In the pre-release versions of Aurelia (for example, betas), JSPM install always got .js and .d.ts files, which was perfect. Now JSPM downloads only .js files. To fix(?) this, Skeleton Templates using Typings now, with a lot of additional lines in…
graycrow
  • 3,675
  • 6
  • 26
  • 28
9
votes
1 answer

Using SystemJS/jspm to load async, es5 modules in production

I want to be able to asynchronously load dependencies using System.import(), but without having to transpile ES6 to ES5 during production runtime. I want these modules to be transpiled into separate, ES5 modules that are fetched only when needed. I…
Himmel
  • 3,629
  • 6
  • 40
  • 77
1
2
3
36 37