These are chat archives for systemjs/systemjs

14th
Apr 2015
carlosagsmendes
@carlosagsmendes
Apr 14 2015 01:34
@guybedford when I use that glob pattern I get the following error:
Build error
{ [Error: Error loading "when/es6-shim/Promise" at file:/Users/carlosmendes/Repos/bundling/src/when/es6-shim/Promise.js
Error loading "when/es6-shim/Promise" from "lib/es6-module-loader" at file:/Users/carlosmendes/Repos/bundling/src/lib/es6-module-loader.js
ENOENT, open '/Users/carlosmendes/Repos/bundling/src/when/es6-shim/Promise.js']
errno: -2,
code: 'ENOENT',
path: '/Users/carlosmendes/Repos/bundling/src/when/es6-shim/Promise.js' }
carlosagsmendes
@carlosagsmendes
Apr 14 2015 01:48
Could this be related to using the in memory process?
carlosagsmendes
@carlosagsmendes
Apr 14 2015 22:25
@guybedford Any idea why the Promise.js file is being loaded? And with a messed up path? I'm unable to sort this out...
Guy Bedford
@guybedford
Apr 14 2015 23:08
@carlosagsmendes that looks suspiciously like you're trying to bundle SystemJS itself
which has a require('when/es6/shim/Promise) in it, which isn't resolving
carlosagsmendes
@carlosagsmendes
Apr 14 2015 23:22
this only happens when I exclude my dependencies folder using the glob syntax main - lib//*/
Guy Bedford
@guybedford
Apr 14 2015 23:23
right, that is becase excludes are by default deep - they exclude deep dependencies as well
to aoid that you can do
app - [lib/**/*]
which is a shallow exclusion
carlosagsmendes
@carlosagsmendes
Apr 14 2015 23:23
systemJs is inside the lib folder
Guy Bedford
@guybedford
Apr 14 2015 23:23
and won't give that error
carlosagsmendes
@carlosagsmendes
Apr 14 2015 23:24
that's great
thank you again
Guy Bedford
@guybedford
Apr 14 2015 23:24
sure