{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/2949","labels_url":"https://api.github.com/repos/facebook/react-native/issues/2949/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/2949/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/2949/events","html_url":"https://github.com/facebook/react-native/issues/2949","id":107802727,"number":2949,"title":"When requiring outside library, transform process hangs","user":{"login":"criticerz","id":185132,"avatar_url":"https://avatars.githubusercontent.com/u/185132?v=3","gravatar_id":"","url":"https://api.github.com/users/criticerz","html_url":"https://github.com/criticerz","followers_url":"https://api.github.com/users/criticerz/followers","following_url":"https://api.github.com/users/criticerz/following{/other_user}","gists_url":"https://api.github.com/users/criticerz/gists{/gist_id}","starred_url":"https://api.github.com/users/criticerz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/criticerz/subscriptions","organizations_url":"https://api.github.com/users/criticerz/orgs","repos_url":"https://api.github.com/users/criticerz/repos","events_url":"https://api.github.com/users/criticerz/events{/privacy}","received_events_url":"https://api.github.com/users/criticerz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/react-native/labels/Packager","name":"Packager","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-09-22T21:07:43Z","updated_at":"2015-10-01T16:15:14Z","closed_at":null,"body":"This is my index.io.js file:\r\n```javascript\r\n/**\r\n * Sample React Native App\r\n * https://github.com/facebook/react-native\r\n */\r\n'use strict';\r\n\r\nvar React = require('react-native');\r\nvar {\r\n  AppRegistry,\r\n  StyleSheet,\r\n  Text,\r\n  View,\r\n} = React;\r\n\r\nvar LayerAPI = require('layer-api');\r\n \r\nvar ClutchChat = React.createClass({\r\n  render: function() {\r\n    return (\r\n      <View style={styles.container}>\r\n        <Text style={styles.welcome}>\r\n          Welcome to React Native!\r\n        </Text>\r\n        <Text style={styles.instructions}>\r\n          To get started, edit index.ios.js\r\n        </Text>\r\n        <Text style={styles.instructions}>\r\n          Press Cmd+R to reload,{'\\n'}\r\n          Cmd+D or shake for dev menu\r\n        </Text>\r\n      </View>\r\n    );\r\n  }\r\n});\r\n\r\nvar styles = StyleSheet.create({\r\n  container: {\r\n    flex: 1,\r\n    justifyContent: 'center',\r\n    alignItems: 'center',\r\n    backgroundColor: '#F5FCFF',\r\n  },\r\n  welcome: {\r\n    fontSize: 20,\r\n    textAlign: 'center',\r\n    margin: 10,\r\n  },\r\n  instructions: {\r\n    textAlign: 'center',\r\n    color: '#333333',\r\n    marginBottom: 5,\r\n  },\r\n});\r\n\r\nAppRegistry.registerComponent('ClutchChat', () => ClutchChat);\r\n```\r\nand my package.json file:\r\n```json\r\n{\r\n  \"name\": \"ClutchChat\",\r\n  \"version\": \"0.0.1\",\r\n  \"private\": true,\r\n  \"scripts\": {\r\n    \"start\": \"node_modules/react-native/packager/packager.sh\"\r\n  },\r\n  \"dependencies\": {\r\n    \"layer-api\": \"^1.0.3\",\r\n    \"react-native\": \"^0.11.0\"\r\n  }\r\n}\r\n```\r\n\r\nUnfortunately, when I build the app the following happens in the console:\r\n```\r\nReact packager ready.\r\n\r\n[5:06:01 PM] <START> Building Dependency Graph\r\n[5:06:01 PM] <START> Crawling File System\r\nLaunching Dev Tools...\r\n[5:06:03 PM] <START> request:/index.ios.bundle\r\n[5:06:03 PM] <START> find dependencies\r\n[5:06:03 PM] <START> request:/index.ios.bundle\r\ntab id 1248 of window id 54\r\n\r\n\r\nWARN: not opened\r\n[5:06:12 PM] <END>   Crawling File System (11218ms)\r\n[5:06:12 PM] <START> Building in-memory fs for JavaScript\r\n[5:06:12 PM] <END>   Building in-memory fs for JavaScript (727ms)\r\n[5:06:12 PM] <START> Building in-memory fs for Assets\r\n[5:06:13 PM] <END>   Building in-memory fs for Assets (641ms)\r\n[5:06:13 PM] <START> Building Haste Map\r\n[5:06:13 PM] <START> Building (deprecated) Asset Map\r\n[5:06:14 PM] <END>   Building (deprecated) Asset Map (172ms)\r\nUnable to resolve module util from /Users/alain/Sites/ClutchChat/node_modules/layer-api/lib/utils.js\r\nUnable to resolve module https from /Users/alain/Sites/ClutchChat/node_modules/layer-api/lib/request.js\r\nUnable to resolve module util from /Users/alain/Sites/ClutchChat/node_modules/layer-api/lib/errors.js\r\ntransforming [======================================= ] 98% 309/316[5:06:14 PM] <END>   Building Haste Map (526ms)\r\n[5:06:14 PM] <END>   Building Dependency Graph (13113ms)\r\n[5:06:14 PM] <END>   find dependencies (10647ms)\r\n[5:06:14 PM] <START> transform\r\ntransforming [======================================= ] 98% 310/316\r\n```\r\n\r\nAnd it just hangs there forever. Notice that if I take out the `var LayerAPI = require('layer-api');` line it works fine. \r\n\r\nAny ideas why that package is causing trouble? I tried another external package and the same thing happened. I made sure to install them using `npm install layer-api --save`\r\n\r\nI'm using React-Native v0.11, Node v4.0.0 & npm v2.14.2."},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/144775842","html_url":"https://github.com/facebook/react-native/issues/2949#issuecomment-144775842","issue_url":"https://api.github.com/repos/facebook/react-native/issues/2949","id":144775842,"user":{"login":"stan229","id":454130,"avatar_url":"https://avatars.githubusercontent.com/u/454130?v=3","gravatar_id":"","url":"https://api.github.com/users/stan229","html_url":"https://github.com/stan229","followers_url":"https://api.github.com/users/stan229/followers","following_url":"https://api.github.com/users/stan229/following{/other_user}","gists_url":"https://api.github.com/users/stan229/gists{/gist_id}","starred_url":"https://api.github.com/users/stan229/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stan229/subscriptions","organizations_url":"https://api.github.com/users/stan229/orgs","repos_url":"https://api.github.com/users/stan229/repos","events_url":"https://api.github.com/users/stan229/events{/privacy}","received_events_url":"https://api.github.com/users/stan229/received_events","type":"User","site_admin":false},"created_at":"2015-10-01T16:15:14Z","updated_at":"2015-10-01T16:15:14Z","body":"@criticerz try adding that `console.log(response.dependencies)` that I mentioned earlier. See what file it's trying to open, may not be package.json even."}}