{"action":"created","issue":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/1689","repository_url":"https://api.github.com/repos/jspm/jspm-cli","labels_url":"https://api.github.com/repos/jspm/jspm-cli/issues/1689/labels{/name}","comments_url":"https://api.github.com/repos/jspm/jspm-cli/issues/1689/comments","events_url":"https://api.github.com/repos/jspm/jspm-cli/issues/1689/events","html_url":"https://github.com/jspm/jspm-cli/issues/1689","id":146420939,"number":1689,"title":"Failed build when importing `crypto`","user":{"login":"Demurgos","id":2262218,"avatar_url":"https://avatars.githubusercontent.com/u/2262218?v=3","gravatar_id":"","url":"https://api.github.com/users/Demurgos","html_url":"https://github.com/Demurgos","followers_url":"https://api.github.com/users/Demurgos/followers","following_url":"https://api.github.com/users/Demurgos/following{/other_user}","gists_url":"https://api.github.com/users/Demurgos/gists{/gist_id}","starred_url":"https://api.github.com/users/Demurgos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Demurgos/subscriptions","organizations_url":"https://api.github.com/users/Demurgos/orgs","repos_url":"https://api.github.com/users/Demurgos/repos","events_url":"https://api.github.com/users/Demurgos/events{/privacy}","received_events_url":"https://api.github.com/users/Demurgos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-06T20:15:18Z","updated_at":"2016-04-07T16:33:46Z","closed_at":null,"body":"Hi,\r\nI am facing an error when trying to create a bundle. My module relies on `reflect-metadata` which itself relies on Node's `crypto`.\r\nHere is the error I get:\r\n\r\n````bash\r\nD:\\projects\\test\\jspm-crypto>jspm bundle-sfx index dist/index\r\n     Building the single-file sfx bundle for index...\r\n\r\nerr  Error on fetch for crypto.js at file:///D:/projects/test/jspm-crypto/crypto.js\r\n        Loading npm:reflect-metadata@0.1.3/Reflect.js\r\n        Loading npm:reflect-metadata@0.1.3.js\r\n        Loading index.js\r\n        Error: ENOENT: no such file or directory, open 'D:\\projects\\test\\jspm-crypto\\crypto.js'\r\n         at Error (native)\r\n````\r\n\r\nIt seems that the `crypto` module is not recognized as a native module (it should use [nodelibs-crypto](https://github.com/jspm/nodelibs-crypto)).\r\n\r\nHere is [a minimal repository demonstrating the bug](https://github.com/Demurgos/jspm-crypto).\r\n\r\nThis is a regression, it worked ~2 weeks ago. (I am using `jspm@0.16.32`)\r\n"},"comment":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/comments/206982886","html_url":"https://github.com/jspm/jspm-cli/issues/1689#issuecomment-206982886","issue_url":"https://api.github.com/repos/jspm/jspm-cli/issues/1689","id":206982886,"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":"2016-04-07T16:33:46Z","updated_at":"2016-04-07T16:33:46Z","body":"You'd need to trace which parent is importing it. Crypto is also removed for AngularJS 2 itself, so it may be that."}}