<!-- PLEASE DON'T DELETE THIS TEMPLATE UNTIL YOU HAVE READ THE FIRST SECTION. --> ### Is this a bug report? Yes <!-- If you answered "Yes": We expect that it will take you about 30 minutes to produce a high-quality bug report. While this may seem like a lot, putting care into issues helps us fix them faster. For bug reports, it is REQUIRED to fill the rest of this template, or the issue will be closed. If you answered "No": We use GitHub Issues exclusively for tracking bugs in React Native. If you're looking for help, the Community page at http://facebook.github.io/react-native/support.html list various resources that should help you get started. Now scroll below! --> ### Have you read the [Contributing Guidelines](https://facebook.github.io/react-native/docs/contributing.html)? (Write your answer here.) ### Environment <!-- Please fill in all the relevant fields by running these commands in terminal. --> 1. `react-native -v`: 0.48.1 2. `node -v`: 8.4.0 3. `npm -v`: 5.4.2 4. `yarn --version`<!-- (if you use Yarn) -->: 1.0.1 Then, specify: <!-- (What platform are you building for? Choose any from iOS, Android, AppleTV.) --> - Target Platform: iOS + Android <!-- Which operating system are you using? Specify macOS, Windows, or Linux, along with specific release versions --> - Development Operating System: macOS <!-- Include any additional relevant information. Are you using Xcode or Android Studio to build native code? Is the issue specific to a particular iOS or Android SDK? --> - Build tools: ### Steps to Reproduce 1. Create a yarn workspace project, with two workspaces: "common" and "native". 2. Add some dependencies to common. 3. Set "native" to depend on "common", and run yarn install. 4. Update native/rn-cli.config.js to read: ``` const config = { getProjectRoots() { return [path.resolve(__dirname), path.resolve(__dirname, '..')]; }, }; export default config. ``` 5. In the native project, run `react-native link`. ### Expected Behavior `react-native link` works properly. ### Actual Behavior `react-native link` throws "Cannot find module" errors ### Reproducible Demo <!-- Please share a project that reproduces the issue. There are two ways to do it: * Create a new app using https://snack.expo.io/ and try to reproduce the issue in it. This is useful if you roughly know where the problem is, or can’t share the real code. * Or, copy your app and remove things until you’re left with the minimal reproducible demo. This is useful for finding the root cause. You may then optionally create a Snack. This is a good guide to creating bug demos: https://stackoverflow.com/help/mcve Once you’re done, copy and paste the link to the Snack or a public GitHub repository below: --> https://github.com/joearasin/workspacesDemo <!-- What happens if you skip this step? Someone will read your bug report, and maybe will be able to help you, but it’s unlikely that it will get much attention from the team. Eventually, the issue will likely get closed in favor of issues that have reproducible demos. Please remember that: * Issues without reproducible demos have a very low priority. * The person fixing the bug would have to do that anyway. Please be respectful of their time. * You might figure out the issues yourself as you work on extracting it. Thanks for helping us help you! -->