Closed matiasanaya closed 7 months ago
The issue is caused by: https://github.com/nrwl/nx/issues/20752
Basically @nx/enforce-module-boundaries
eslint plugin throws an error when there is no NX graph generated. Starting webapp before first commit will call under the hood NX and generate the graph, this is why it's working after.
It can be fixed also by calling other NX command, like: pnpm nx show projects
.
Documentation is
Explain in detail
I ran
pnpm create saas-boilerplate .
and the immediately tried to rungit commit -m "boilerplate: init saas-boilerplate"
which failed with:This can be fixed by running
pnpm nx start webapp
, maybe runningpnpm install
?Your Suggestion for Changes
I'd suggest documenting this. At least for me is natural to commit the boilerplate starting state before running anything else.