You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is super annoying, I have another directory that doesn't have the executables (ie babel/eslint) working and I have no idea why. need to remove stuff from package.json piece by piece until I find the culprit.
it appears to be caused by postinstall scripts (node-sass, cypress, etc). --ignore-scripts doesn't really work for some reason. Deleting these dependencies make it work.
Woops - we automatically unplug the packages that have {pre/post}install scripts (since otherwise they would get built inside the cache, which could lead to cache corruptions). I forgot to prevent this from happening with workspaces.
clone https://github.com/bradfordlemley/cra-monorepo-examples
use plug-n-play: yarn --pnp
goto a apps/cra-app1
add a preinstall script:
run
yarn
in workspace root, see no obivous errorsrun
yarn app1
see react-scripts not foundrun
yarn app2
and it works fine.@arcanis
The text was updated successfully, but these errors were encountered: