Missing workspace.json
See original GitHub issueWhen executing nx run workspace:version --sync-versions true --root-changelog false in my nx repo I get the following warning:
(node:7184) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open 'project/workspace.json'
(Use `node --trace-warnings ...` to show where the warning was created)
(node:7184) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:7184) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
NX version: "@nrwl/workspace": "11.1.5"
Issue Analytics
- State:
 - Created 3 years ago
 - Comments:6 (5 by maintainers)
 
Top Results From Across the Web
Workspace.json file not found in latest version #10287 - GitHub
I am following this documentation. workspace.json file not created for both workspace command and npm-package command.
Read more >Workspace json missing - Import and Export
If workspaces.json is absent or outdated, the project's import to another cryoSPARC instance will be faulty or will fail altogether. We are ...
Read more >workspace.json - Nx
Next generation build system with first class monorepo support and powerful integrations.
Read more >Missing angular.json file in nx workspace Angular project
I am trying to add a css framework to my angular project that I recently started but I noticed I do not have...
Read more >Workspaces in Visual Studio Code
Learn about Visual Studio Code workspaces. ... folder as workspace, you will open a <name>.code-workspace JSON file that lists the folders of the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

It also works in the mountains. If I fall then it’s a hole 😅.
Thanks @petergrau for the issue.
There was actually a problem with the
readJsonFilefunction as it is usingfrominstead ofdefer. If the error is triggered before we subscribe and implicitly add an error catcher, it would crash. I am sharing a fix right now.@edbzn Actually, I am more in favor of the pythonic approach of “Easier to Ask for Forgiveness than Permission” https://docs.python.org/3.9/glossary.html#term-eafp instead of https://docs.python.org/3.9/glossary.html#term-lbyl 🐍