Skip to content
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

Had to run NX_DAEMON=false npm run serve #60

Open
kjeldahl opened this issue May 31, 2024 · 1 comment
Open

Had to run NX_DAEMON=false npm run serve #60

kjeldahl opened this issue May 31, 2024 · 1 comment

Comments

@kjeldahl
Copy link

When following the guide in README when I came to the command npm run serve it failed with a message:

Could not find 'nx' module in this workspace. Error: [readCachedProjectGraph] ERROR: No cached ProjectGraph is available.
If you are leveraging \`readCachedProjectGraph()\` directly then you will need to refactor your usage to first ensure that
the ProjectGraph is created by calling \`await createProjectGraphAsync()\` somewhere before attempting to read the data.
If you encounter this error as part of running standard \`nx\` commands then please open an issue on https://github.com/nrwl/nx

And by looking at createProjectGraphAsync() I found a description leading me to add the NX_DAEMON=false settings.
It is apparently only needed one time.

@codeliner
Copy link
Contributor

@kjeldahl thx for reporting. Sorry for the late response. Seems to be a Nx problem. I'll investigate what we can do about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants