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
0
votes
0 answers

jspm duplicate identifier issues

Got a typescript project set up with NPM. And a general group of starter packages. typescript, angular, jquery, bootstrap, lodash, blah blah blah beneath node_modules and I start prototyping client/server apps. The million dollar question, how do I…
Ken
  • 35
  • 5
0
votes
1 answer

Can JSPM load scripts from external URL's?

I import jQuery with JSPM - in development mode this is done async. I have an external script, which would be located here for example: https://www.example.com/script-that-requires-jquery.js The external script requires jQuery, and uses the document…
Dany D
  • 1,189
  • 2
  • 18
  • 44
0
votes
1 answer

Angular2 jspm dependency issue

After switching to jspm for Angular2 package management (instead of using the script tag), I have a handful that are not loading. It seems it's looking for them in the root: http://localhost:55707 rather than in the jspm location specified in…
Ryan Langton
  • 6,294
  • 15
  • 53
  • 103
0
votes
1 answer

jspm forcing erroneous default

For a project in the past, I made the public baseURL of jspm point to an app folder. However, in any new project, when I run jspm init it defaults to the app folder, but I don't want this. I tried looking for documentation on this, but the CLI…
lux
  • 8,315
  • 7
  • 36
  • 49
0
votes
1 answer

How to install Bower component from Stash repo with JSPM

My client uses Stash (which it seems has been renamed Bitbucket Server) to host project repositories. We use a private Bower registry for our private libraries. In this new project I am building, I am using JSPM. I have used jspm-git to create a…
jansensan
  • 633
  • 1
  • 8
  • 23
0
votes
0 answers

jspm config to load files outside baseURL

I'm developing a JS app http://myclibu.com which shares code between Node.js on the server and code in the Browser. And I'm migrating from using require.js to jspm.io for module loading in the Browser. My ideal folder structure is app -|- browser …
nevf
  • 4,596
  • 6
  • 31
  • 32
0
votes
1 answer

Prevent jspm from require'ing a module

In a JS file being loaded by JSPM/System.js I have if ( condition ) require( "file" ) My problem is jspm always tries to load "file" regardless of condition and "file" doesn't exist in specific scenarios. Which results in Uncaught (in promise)…
nevf
  • 4,596
  • 6
  • 31
  • 32
0
votes
0 answers

Transpiler errors in Babel

I recently wanted to switch from browserify but I see this error on Chrome 47 and Firefox 43: Uncaught TypeError: undefined is not iterable!module.exports.require.getIterator @ core.get-iterator.js:7(anonymous function) @ index.js:173(anonymous…
xhitedev
  • 1
  • 2
0
votes
0 answers

TypeScript - duplicate identifier in lib.ts

I'm trying to get started with jspm and Visual Studio. (and Aurelia JS) In package.json I have... { "name": "MyApp", "version": "1.0.0", "main": "src/main.js", "devDependencies": { "ts":…
user888734
  • 3,797
  • 5
  • 36
  • 67
0
votes
0 answers

Jspm error :URIError: URI malformed

I tried running jspm from command line and i get the error: err URIError: URI malformed at decodeURIComponent (native) at decodeCredentials (C:\Users\lugassi\Desktop\New…
Yonatan
  • 41
  • 3
0
votes
1 answer

Can't import bundled file

I'm doing this in my application System.import('lib/bootstrap.js').then(m => { this.socket = m.io("http://localhost:3000"); }) This is bootstrap.js import io from 'socket.io-client'; export { io }; I created a bundle via jspm bundle…
Hedge
  • 16,142
  • 42
  • 141
  • 246
0
votes
2 answers

Angular2 System.js can't find jspm packages

I'm trying to write a simple Angular2 (using Alpha 47) app and I am trying to install "npm guid" from jspm. It installs fine but when I try and run the app I always get "GET http://localhost:3001/jspm_packages/npm/guid@0.0.12 404 (Not Found)". I've…
cpeele00
  • 883
  • 4
  • 14
  • 29
0
votes
0 answers

How do I correctly resolve es6 modules in a project using jspm's paths config in my mocha test file

We've got a jspm config.js which contains the following settings: baseUrl: "/A_count", paths: { "js/*": "src/js/*.js" } This effectively allows us to use cleaner import statements, instead of having to stub out relative paths. Our directory…
papiro
  • 2,158
  • 1
  • 20
  • 29
0
votes
2 answers

jspm + karma + karma-jspm + plugin-typescript

This post is stackoverflow repost from my issues at https://github.com/frankwallis/plugin-typescript/issues/64 and https://github.com/Workiva/karma-jspm/issues/112 We plan to upgrade our team stack for web ui so we decide: 1) use Karma as test…
comdiv
  • 865
  • 7
  • 26
0
votes
2 answers

How to use cropper.js in typescript modular project?

I am using jspm install npm:cropper which installs cropper and adds "cropper": "npm:cropper@^2.0.1" to package.json aslo i could find it under \jspm_packages\npm folder But its not loading in network tab. any idea what am missing? P.S:- I did not…
hasain
  • 333
  • 3
  • 10