-
-
Notifications
You must be signed in to change notification settings - Fork 498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CRACO compiles monorepo (Yarn workspaces) but doesn't show errors #277
Comments
I have a repo which shows what is going on here: https://github.com/MikeSuiter/craco-monorepo-example Go to the root of the workspace and run Now go to Any direction would be greatly appreciated. |
Did you manage to find a solution to this I did this - https://blog.johnnyreilly.com/2021/01/02/create-react-app-with-ts-loader-and-craco/ |
@dominicboston I did figure it out and have an example repo here: https://github.com/MikeSuiter/craco-monorepo-example |
@MikeSuiter you're a hero 👍🏻 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I'm working on a POC to see if I can I move our existing code into a monorepo using Yarn workspaces. My sample monorepo has this structure.
The
apps
folder will contain all of the CRA apps andpackages
will contain code to be shared among them. I don't want to compile code inpackages
separately, just want to do ayarn start
oryarn build
inapps/app-one
and have it include dependencies frompackages
.This is actually working, and if there is a compile error in
app-core
it shows it in the terminal as it should. If I introduce a compile error inpackages/btns
, the terminal shows this:But my browser shows this:
This is my craco.config.js
The output from the above code shows this which is correct.
Any ideas on why compile errors in
packages
don't show in the terminal but show in the browser? Also if I do a build, it finishes successfully which it shouldn't.The text was updated successfully, but these errors were encountered: