Skip to content

Had to run NX_DAEMON=false npm run serve #60

@kjeldahl

Description

@kjeldahl

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions