nx-extend: [readCachedProjectGraph] ERROR: No cached ProjectGraph is available.
Getting this error relating to projectGraph not existing when trying to build Strapi.
Additional info:
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.
Callstack:
at readCachedProjectGraph (/Users/gannawayb/Documents/VS_Code/PROJECT/node_modules/@nrwl/workspace/node_modules/nx/src/project-graph/project-graph.js:28:15)
at /Users/gannawayb/Documents/VS_Code/PROJECT/node_modules/@nx-extend/strapi/src/utils/create-package-json.js:12:121
at Generator.next (<anonymous>)
at /Users/gannawayb/Documents/VS_Code/PROJECT/node_modules/@nx-extend/strapi/node_modules/tslib/tslib.js:167:75
at new Promise (<anonymous>)
at Object.__awaiter (/Users/gannawayb/Documents/VS_Code/PROJECT/node_modules/@nx-extend/strapi/node_modules/tslib/tslib.js:163:16)
at createPackageJson (/Users/gannawayb/Documents/VS_Code/PROJECT/node_modules/@nx-extend/strapi/src/utils/create-package-json.js:11:20)
at /Users/gannawayb/Documents/VS_Code/PROJECT/node_modules/@nx-extend/strapi/src/executors/build/build.impl.js:41:59
at Generator.next (<anonymous>)
at fulfilled (/Users/gannawayb/Documents/VS_Code/PROJECT/node_modules/@nx-extend/strapi/node_modules/tslib/tslib.js:164:62)
It was happening intermittently, but got worse when we migrated to the latest version of NX 16.10.0
Is there some additional step to take with the Strapi plugin to bring it into line? It’s not clear how to upgrade the version of this as migrate doesn’t work…
About this issue
- Original URL
- State: closed
- Created 8 months ago
- Comments: 17 (9 by maintainers)
Can you run and share the output of
nx report