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
Because the packages dev scripts are long process using watch, they have to be executed in parallel.
When scripts are executed in parralel, the packages topological order is not respected. Therefore it generates compilation errors initially because project A depending on project B will try to use project B before it's fully compiled.
There a great explanation of the issue in this article.
A potential solution is to fix this by adding Turborepo to the project. Not my favorite solution as I feel like we have already have enough tools but if it's the best solution let do it!
The text was updated successfully, but these errors were encountered:
patricklafrance
changed the title
Executing "dev" script from a fresh install throw compilation errors
Executing the root "dev" script from a fresh install throw compilation errors
May 10, 2023
Because the packages
dev
scripts are long process usingwatch
, they have to be executed in parallel.When scripts are executed in parralel, the packages topological order is not respected. Therefore it generates compilation errors initially because project A depending on project B will try to use project B before it's fully compiled.
There a great explanation of the issue in this article.
A potential solution is to fix this by adding Turborepo to the project. Not my favorite solution as I feel like we have already have enough tools but if it's the best solution let do it!
The text was updated successfully, but these errors were encountered: