These are chat archives for systemjs/systemjs

17th
Dec 2015
Peter Uithoven
@peteruithoven
Dec 17 2015 00:47
@Mosho1 You tried awnsering no in jspm init?
Bnaya Peretz
@Bnaya
Dec 17 2015 10:19
Problem with systemjs-builder, i'm using the build cache,
if you pass file with syntax error, you get error
And then if you fix the error and call invalidate again for this file, you get the same error.
like the file contents is cached
Bnaya Peretz
@Bnaya
Dec 17 2015 10:25
(I'm using jspm-dev-builder but i believe the problem is within systemjs builder)
Josiah Haswell
@josiahhaswell
Dec 17 2015 22:40
Hi folks, I'm using TypeScript+SystemJS, and I need a bit of help on an import
I'm using vis.js, I added it with JSPM
And I created a TypeScript definition file for it
But I can't seem to import it correctly
The actual javascript file is under jspm_modules/npm/vis@4.10.0/dist/vis.js
So, I added "map" {
"vis" : "npm:vis@4.10.0/dist/vis"
}
Is this not how to map it correctly?
Peter Uithoven
@peteruithoven
Dec 17 2015 22:50
@josiahhaswell normally installing it with jspm install npm:vis should take care of this.
Looking at the package.json it points to a min version of vis.js: https://github.com/almende/vis/blob/master/package.json#L24 automatically
Josiah Haswell
@josiahhaswell
Dec 17 2015 22:50
It does when importing from ES6 (although, I have to import it as 'vis/dist/vis',
Peter Uithoven
@peteruithoven
Dec 17 2015 22:51
You need to use another as main/entry file?
You can probably use an override and specify another main, see:
https://github.com/jspm/registry/wiki/Configuring-Packages-for-jspm#testing-configuration
Josiah Haswell
@josiahhaswell
Dec 17 2015 23:04
Ok. That worked. Thanks!
Peter Uithoven
@peteruithoven
Dec 17 2015 23:05
my pleasure