{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/22214","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/22214/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/22214/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/22214/events","html_url":"https://github.com/facebook/react-native/issues/22214","id":378802967,"node_id":"MDU6SXNzdWUzNzg4MDI5Njc=","number":22214,"title":"Watchman / Metro Bundle cache don't update changes","user":{"login":"ger86","id":1313445,"node_id":"MDQ6VXNlcjEzMTM0NDU=","avatar_url":"https://avatars1.githubusercontent.com/u/1313445?v=4","gravatar_id":"","url":"https://api.github.com/users/ger86","html_url":"https://github.com/ger86","followers_url":"https://api.github.com/users/ger86/followers","following_url":"https://api.github.com/users/ger86/following{/other_user}","gists_url":"https://api.github.com/users/ger86/gists{/gist_id}","starred_url":"https://api.github.com/users/ger86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ger86/subscriptions","organizations_url":"https://api.github.com/users/ger86/orgs","repos_url":"https://api.github.com/users/ger86/repos","events_url":"https://api.github.com/users/ger86/events{/privacy}","received_events_url":"https://api.github.com/users/ger86/received_events","type":"User","site_admin":false},"labels":[{"id":992655625,"node_id":"MDU6TGFiZWw5OTI2NTU2MjU=","url":"https://api.github.com/repos/facebook/react-native/labels/%F0%9F%93%A6Bundler","name":"📦Bundler","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-11-08T16:06:09Z","updated_at":"2018-11-15T08:02:39Z","closed_at":null,"author_association":"NONE","body":"## Environment\r\n  React Native Environment Info:\r\n    System:\r\n      OS: macOS 10.14\r\n      CPU: (8) x64 Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz\r\n      Memory: 36.08 MB / 8.00 GB\r\n      Shell: 3.2.57 - /bin/bash\r\n    Binaries:\r\n      Node: 8.12.0 - /usr/local/bin/node\r\n      Yarn: 1.10.1 - /usr/local/bin/yarn\r\n      npm: 6.4.1 - /usr/local/bin/npm\r\n      Watchman: 4.9.0 - /usr/local/bin/watchman\r\n    SDKs:\r\n      iOS SDK:\r\n        Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1\r\n      Android SDK:\r\n        API Levels: 26, 27\r\n        Build Tools: 26.0.3, 27.0.3, 28.0.3\r\n        System Images: android-25 | Google Play Intel x86 Atom, android-26 | Google APIs Intel x86 Atom_64, android-27 | Google APIs Intel x86 Atom\r\n    IDEs:\r\n      Android Studio: 3.2 AI-181.5540.7.32.5056338\r\n      Xcode: 10.1/10B61 - /usr/bin/xcodebuild\r\n    npmPackages:\r\n      react: 16.6.0 => 16.6.0 \r\n      react-native: 0.57.4 => 0.57.4 \r\n    npmGlobalPackages:\r\n      react-native-cli: 2.0.1\r\n\r\n## Description\r\nSince React Native 0.57.4 when I am working with the iOS simulator, if I have an error importing a module (suppose I try to import ../A/someModule but someModule does not exists) I get the following error:\r\n\r\n![simulator screen shot - iphone 6 - 2018-11-08 at 17 01 44](https://user-images.githubusercontent.com/1313445/48210694-2b7d1b00-e378-11e8-83f7-d529b86be516.png)\r\n\r\nBut when I fixed it, watchman can't detect the change done in the source code and I have to:\r\n- reboot my computer\r\n- reinstall watchman package \r\n- remove node_modules folder \r\n\r\nIt is something weird but with a project with RC 57.1 doesn't happen to me... \r\n\r\nI try with a clean installation of react-native and it starts to happen radomly. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/438951414","html_url":"https://github.com/facebook/react-native/issues/22214#issuecomment-438951414","issue_url":"https://api.github.com/repos/facebook/react-native/issues/22214","id":438951414,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODk1MTQxNA==","user":{"login":"ger86","id":1313445,"node_id":"MDQ6VXNlcjEzMTM0NDU=","avatar_url":"https://avatars1.githubusercontent.com/u/1313445?v=4","gravatar_id":"","url":"https://api.github.com/users/ger86","html_url":"https://github.com/ger86","followers_url":"https://api.github.com/users/ger86/followers","following_url":"https://api.github.com/users/ger86/following{/other_user}","gists_url":"https://api.github.com/users/ger86/gists{/gist_id}","starred_url":"https://api.github.com/users/ger86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ger86/subscriptions","organizations_url":"https://api.github.com/users/ger86/orgs","repos_url":"https://api.github.com/users/ger86/repos","events_url":"https://api.github.com/users/ger86/events{/privacy}","received_events_url":"https://api.github.com/users/ger86/received_events","type":"User","site_admin":false},"created_at":"2018-11-15T08:02:39Z","updated_at":"2018-11-15T08:02:39Z","author_association":"NONE","body":"> Have you tried starting Metro with the --reset-cache flag?\r\n> \r\n> In other words, in a terminal window, run `react-native start --reset-cache`. This will start a Metro bundler instance in that terminal window.\r\n> In another terminal window, run `react-native run-<your platform>`.\r\n> \r\n> Usually does the trick for me, when that error appears. But I haven't upgraded to the latest version of RN, so YMMV.\r\n\r\nNope, I have tried it and same results.... I have noticed the error starts to happen (most of the times) when there is a dependency error (ie, import A from 'MyApp/src/no-existing'). Then I have to reset my computer or reinstall watchman... "}}
{"actor":{"display_login":"ger86"}}