{"action":"closed","issue":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/1491","repository_url":"https://api.github.com/repos/jspm/jspm-cli","labels_url":"https://api.github.com/repos/jspm/jspm-cli/issues/1491/labels{/name}","comments_url":"https://api.github.com/repos/jspm/jspm-cli/issues/1491/comments","events_url":"https://api.github.com/repos/jspm/jspm-cli/issues/1491/events","html_url":"https://github.com/jspm/jspm-cli/issues/1491","id":130805580,"number":1491,"title":"bundle fails with \"Module c not present\"","user":{"login":"andrenarchy","id":1874116,"avatar_url":"https://avatars.githubusercontent.com/u/1874116?v=3","gravatar_id":"","url":"https://api.github.com/users/andrenarchy","html_url":"https://github.com/andrenarchy","followers_url":"https://api.github.com/users/andrenarchy/followers","following_url":"https://api.github.com/users/andrenarchy/following{/other_user}","gists_url":"https://api.github.com/users/andrenarchy/gists{/gist_id}","starred_url":"https://api.github.com/users/andrenarchy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrenarchy/subscriptions","organizations_url":"https://api.github.com/users/andrenarchy/orgs","repos_url":"https://api.github.com/users/andrenarchy/repos","events_url":"https://api.github.com/users/andrenarchy/events{/privacy}","received_events_url":"https://api.github.com/users/andrenarchy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jspm/jspm-cli/labels/support","name":"support","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2016-02-02T20:21:59Z","updated_at":"2016-02-16T11:47:41Z","closed_at":"2016-02-16T11:47:41Z","body":"In [paperhive-frontend](https://github.com/paperhive/paperhive-frontend/tree/322fd7ae7d80dba5c0be7aabbf63045019feab49) everything runs smoothly without bundling (jspm 0.17.0-beta.5). After creating a bundle with \r\n```\r\njspm build app/index.ts build/index.js\r\n```\r\nthe browser fails while executing the bundle:\r\n```\r\nUncaught Module c not present.\r\n```\r\nIt seems to fail in line 2 of the following generated code:\r\n```\r\n$__System.registerDynamic(\"b\", [\"c\"], true, function($__require, exports, module) {\r\n  var process = $__require(\"c\");\r\n  var global = this,\r\n      __define = global.define;\r\n  global.define = undefined;\r\n  (function(global, factory) {\r\n    typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : global.moment = factory();\r\n  }(this, function() {\r\n    'use strict';\r\n    var hookCallback;\r\n    function utils_hooks__hooks() {\r\n      return hookCallback.apply(null, arguments);\r\n    }\r\n[...]\r\n```\r\n\r\nAny hints for getting a working bundle are highly appreciated! :smiley: Let me know if I can help to track this down. I'm a bit clueless with this generated code..."}}