with-yarn-workspaces is failing to build for multiple reasons.
- Dominant language
- TypeScript
- Stars
- 3.7k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Trying multiple ways to setup `with-yarn-workspaces`
There seems to be issues related to the packages setup.
Using yarn `4.0.2` or yarn `3.2.1` or `1.22.19` after setup I'm running `yarn start-app` => `w: web` and getting:
```
Please install @expo/webpack-config@^19.0.0 by running:
npx expo install @expo/webpack-config@^19.0.0
```
so I install this in the app/mobile folder as required
and then I get this
```
>yarn start-app
Error: Cannot find module 'expo-yarn-workspaces/webpack'
```
So I add it manually with `yarn add expo-yarn-workspaces`
After all that, `yarn web` finally launched metro but
Its blank. Some warnings but nothing that seems fatal.
```
Logs for your project will appear below. Press Ctrl+C to exit.
warning: Watchman `watch-project` returned a warning: Recrawled this watch 243 times, most recently because:
MustScanSubDirs UserDroppedTo resolve, please review the information on
https://facebook.github.io/watchman/docs/troubleshooting.html#recrawl
To clear this warning, run:
`watchman watch-del '/Users/johntwigg/development/external/StickerSmashYarn' ; watchman watch-project '/Users/johntwigg/development/external/StickerSmashYarn'`
warning: Watchman `watch-project` returned a warning: Recrawled this watch 243 times, most recently because:
MustScanSubDirs UserDroppedTo resolve, please review the information on
https://facebook.github.io/watchman/docs/troubleshooting.html#recrawl
To clear this warning, run:
`watchman watch-del '/Users/johntwigg/development/external/StickerSmashYarn' ; watchman watch-project '/Users/johntwigg/development/external/StickerSmashYarn'`
warning: Watchman `query` returned a warning: Recrawled this watch 243 times, most recently because:
MustScanSubDirs UserDroppedTo resolve, please review the information on
https://facebook.github.io/watchman/docs/troubleshooting.html#recrawl
To clear this warning, run:
`watchman watch-del '/Users/johntwigg/development/external/StickerSmashYarn' ; watchman watch-project '/Users/johntwigg/development/external/StickerSmashYarn'`
Recrawled this watch 243 times, most recently because:
MustScanSubDirs UserDroppedTo resolve, please review the information on
https://facebook.github.io/watchman/docs/troubleshooting.html#recrawl
To clear this warning, run:
`watchman watch-del '/Users/johntwigg/development/external/StickerSmashYarn' ; watchman watch-project '/Users/johntwigg/development/external/StickerSmashYarn'`
```
Contributor guide
Research direction
Start by reproducing the failure from the app/mobile setup with the yarn start-app and yarn web entry points, checking the workspace package configuration and the expo-yarn-workspaces/webpack import mentioned in the report. Done means the documented setup builds without manual dependency additions and the web app renders instead of showing a blank page.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript, webpack
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100