These are chat archives for systemjs/systemjs

6th
Jun 2015
Maeoll Kim
@abyss-outpost
Jun 06 2015 11:30
Hey all, I'm trying to set up an AngularJS/SystemJS system and I keep running into the issue "System.import is not a function" I'm guessing this has to to with my configuration?
Rob Wormald
@robwormald
Jun 06 2015 11:35
are you using jspm?
Maeoll Kim
@abyss-outpost
Jun 06 2015 11:36
@robwormald no, I'm using bower
Rob Wormald
@robwormald
Jun 06 2015 11:37
you should use jspm. try including the es6 module loader as well
Maeoll Kim
@abyss-outpost
Jun 06 2015 11:38
@robwormald ok, i'm trying that, but I'm still getting an error. I'm doing "import angular from 'angular'; is that right?
Rob Wormald
@robwormald
Jun 06 2015 11:42
yep
but you'll probably see that that 404's
Maeoll Kim
@abyss-outpost
Jun 06 2015 11:47
Still the same error message
Maeoll Kim
@abyss-outpost
Jun 06 2015 12:06
I got it working, nevermind
Shanon Levenherz
@shanonvl
Jun 06 2015 15:54

hey all, i just upgraded to 0.17 and noticed that it removed the * from the paths argument to System.config:

  System.config({
    "paths": {
      "*": "/dist/*.js",
      "github:*":"/jspm_packages/github/*.js",
      "npm:*": "/jspm_packages/npm/*.js"
    }
  });

is now:

  System.config({
    "paths": {
      "github:*": "/jspm_packages/github/*",
      "npm:*": "/jspm_packages/npm/*"
    }
  });

If I put * back, I get issues resolving the github and npm targets. Can someone please lmk how to specify that all non-github/npm JS files are in a specific sub-dir?

Shanon Levenherz
@shanonvl
Jun 06 2015 16:02
nm - figured it out with baseURL.