question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing workspace.json

See original GitHub issue

When 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:closed
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
yjaaidicommented, Feb 2, 2021

It also works in the mountains. If I fall then it’s a hole 😅.

1reaction
yjaaidicommented, Feb 2, 2021

Thanks @petergrau for the issue.

There was actually a problem with the readJsonFile function as it is using from instead of defer. 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 🐍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found