{"action":"created","issue":{"url":"https://api.github.com/repos/systemjs/builder/issues/315","labels_url":"https://api.github.com/repos/systemjs/builder/issues/315/labels{/name}","comments_url":"https://api.github.com/repos/systemjs/builder/issues/315/comments","events_url":"https://api.github.com/repos/systemjs/builder/issues/315/events","html_url":"https://github.com/systemjs/builder/issues/315","id":107317646,"number":315,"title":"Can't read config.js","user":{"login":"screendriver","id":149248,"avatar_url":"https://avatars.githubusercontent.com/u/149248?v=3","gravatar_id":"","url":"https://api.github.com/users/screendriver","html_url":"https://github.com/screendriver","followers_url":"https://api.github.com/users/screendriver/followers","following_url":"https://api.github.com/users/screendriver/following{/other_user}","gists_url":"https://api.github.com/users/screendriver/gists{/gist_id}","starred_url":"https://api.github.com/users/screendriver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/screendriver/subscriptions","organizations_url":"https://api.github.com/users/screendriver/orgs","repos_url":"https://api.github.com/users/screendriver/repos","events_url":"https://api.github.com/users/screendriver/events{/privacy}","received_events_url":"https://api.github.com/users/screendriver/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-19T07:35:04Z","updated_at":"2015-09-19T13:44:06Z","closed_at":"2015-09-19T13:44:05Z","body":"I can't bundle anymore.\r\n\r\n```sh\r\n[09:24:49] TypeError: Cannot read property 'toString' of undefined\r\n    at Builder.executeConfigFile (/home/me/development/project/node_modules/systemjs-builder/lib/builder.js:162:22)\r\n    at lib$rsvp$$internal$$tryCatch (/home/me/development/project/node_modules/systemjs-builder/node_modules/rsvp/dist/rsvp.js:493:16)\r\n    at lib$rsvp$$internal$$invokeCallback (/home/me/development/project/node_modules/systemjs-builder/node_modules/rsvp/dist/rsvp.js:505:17)\r\n    at lib$rsvp$$internal$$publish (/home/me/development/project/node_modules/systemjs-builder/node_modules/rsvp/dist/rsvp.js:476:11)\r\n    at lib$rsvp$asap$$flush (/home/me/development/project/node_modules/systemjs-builder/node_modules/rsvp/dist/rsvp.js:1198:9)\r\n    at doNTCallback0 (node.js:408:9)\r\n    at process._tickCallback (node.js:337:13)\r\n\r\n```\r\n\r\nMy `gulpfile.babel.js`\r\n\r\n```js\r\nimport gulp from 'gulp';\r\nimport Builder from 'systemjs-builder';\r\n\r\ngulp.task('bundle', () => {\r\n  const builder = new Builder();\r\n  return builder.loadConfig('./config.js')\r\n    .then(() => builder.bundle('index.js', 'bundle.js'));\r\n});\r\n```\r\n\r\nI looked at `builder.js:162:22` and it seems that `source` is undefined. My `./config.js` exists though. I can open it with the nodejs `fs` module within my `gulpfile.babel.js`.\r\n\r\nI am using jspm `0.16.5` and systemjs-builder `0.14.1`."},"comment":{"url":"https://api.github.com/repos/systemjs/builder/issues/comments/141668680","html_url":"https://github.com/systemjs/builder/issues/315#issuecomment-141668680","issue_url":"https://api.github.com/repos/systemjs/builder/issues/315","id":141668680,"user":{"login":"guybedford","id":598730,"avatar_url":"https://avatars.githubusercontent.com/u/598730?v=3","gravatar_id":"","url":"https://api.github.com/users/guybedford","html_url":"https://github.com/guybedford","followers_url":"https://api.github.com/users/guybedford/followers","following_url":"https://api.github.com/users/guybedford/following{/other_user}","gists_url":"https://api.github.com/users/guybedford/gists{/gist_id}","starred_url":"https://api.github.com/users/guybedford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guybedford/subscriptions","organizations_url":"https://api.github.com/users/guybedford/orgs","repos_url":"https://api.github.com/users/guybedford/repos","events_url":"https://api.github.com/users/guybedford/events{/privacy}","received_events_url":"https://api.github.com/users/guybedford/received_events","type":"User","site_admin":false},"created_at":"2015-09-19T13:44:05Z","updated_at":"2015-09-19T13:44:05Z","body":"Released in 0.14.2."}}