These are chat archives for systemjs/systemjs

8th
Aug 2017
Christoffer Skogh
@chrillewoodz
Aug 08 2017 11:46
How do you get systemjs to load node modules? trying to use lodash but it's not finding the node_modules folder let alone lodash when running the app
Miloš Lapiš
@mlc-mlapis
Aug 08 2017 11:53
@chrillewoodz ... so something wrong in your app config of SystemJS?
Christoffer Skogh
@chrillewoodz
Aug 08 2017 11:54
@mlc-mlapis I guess but idk what
Miloš Lapiš
@mlc-mlapis
Aug 08 2017 11:54
@chrillewoodz ... because of not finding the node_modules it should be relative easy to find.
I've been looking at this for hours but I'm getting nowhere
Peter Müller
@Munter
Aug 08 2017 11:56
Is node_modules inside your web root?
Christoffer Skogh
@chrillewoodz
Aug 08 2017 11:56
No that's the thing
or ye it is
but lodash and the translate module ain't there
Miloš Lapiš
@mlc-mlapis
Aug 08 2017 11:57
@chrillewoodz ... ah, so you need to create an exception for it ... depends on where they are.
Peter Müller
@Munter
Aug 08 2017 11:57
There's a whole bunch of npm modules that are not written with systemjs consumption in mind. This is one of the many reasons jspm was created. Using jspm to install these packages should solve most of your problems, and also separate frontend and backend dependencies
Christoffer Skogh
@chrillewoodz
Aug 08 2017 11:58
I was trying to find a webpack boilerplate but all seem out of date which is really annoying
Peter Müller
@Munter
Aug 08 2017 11:58
systemjs doesn't know to look in package.json for the main file for example
Christoffer Skogh
@chrillewoodz
Aug 08 2017 11:59
Is there really no other way? I don't wanna use jspm...
Peter Müller
@Munter
Aug 08 2017 12:01
Of course there's another way. You can manually inspect each package that doesn't work and add the needed systemjs config to make it work. ... exactly what jspm does
Christoffer Skogh
@chrillewoodz
Aug 08 2017 12:03
you mean using map in the config to point to the correct package?
Peter Müller
@Munter
Aug 08 2017 12:04
Yes. And all the other possible stuff you might need to configure. It's been a while since I worked with jspm/systemjs, so I'm a bit out of the loop