hudy9x / namviek

The open-source project manager for tiny teams
https://namviek.com
GNU General Public License v3.0
2.05k stars 237 forks source link

No cached ProjectGraph is available. #244

Closed khayargoli closed 4 months ago

khayargoli commented 4 months ago

I have been getting this error on Windows machine:

yarn frontend
yarn run v1.22.22
$ nx serve ui-app

> nx run ui-app:serve:development

- ready started server on 0.0.0.0:4200, url: http://localhost:4200
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
    at readCachedProjectGraph (D:\Fun\WorkManager\namviek\node_modules\@nx\next\node_modules\nx\src\project-graph\project-graph.js:30:15)
    at findAllProjectNodeDependencies (D:\Fun\WorkManager\namviek\node_modules\@nx\next\node_modules\nx\src\utils\project-graph-utils.js:60:115)
    at D:\Fun\WorkManager\namviek\node_modules\@nx\next\plugins\with-nx.js:89:30
    at forNextVersion (D:\Fun\WorkManager\namviek\node_modules\@nx\next\plugins\with-nx.js:289:9)
    at D:\Fun\WorkManager\namviek\node_modules\@nx\next\plugins\with-nx.js:82:13
    at Generator.next (<anonymous>)
    at fulfilled (D:\Fun\WorkManager\namviek\node_modules\tslib\tslib.js:166:62)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  type: 'Error'
}
 >  NX   Next.js app exited with code 1
   Pass --verbose to see the stacktrace.
hudy9x commented 4 months ago

Hi @khayargoli The error might be occurred by conflict between nx local version and nx global version. Please remove your global and local nx version. And reinstall it with same version

image

khayargoli commented 4 months ago

Thanks @hudy9x bro, this worked now and your project is really awesome. Did you make all of this all by yourself?

Wish we had a brief youtube tutorial on this project, I am new to nx / redis and the schedulers you have used in here. Which is why I wanted to learn from your project on how these things are working together beautifully.

cheers man!

Biswas, from Nepal

hudy9x commented 4 months ago

@khayargoli

Did you make all of this all by yourself?

90% bro

Wish we had a brief youtube tutorial on this project, I am new to nx / redis and the schedulers you have used in here. Which is why I wanted to learn from your project on how these things are working together beautifully.

There're 2 reason to make me build this project:

If you'd like to learn something, join my discord here: https://discord.gg/XbYtDQYFPZ