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.

Running npx add-nx-to-monorepo returns Cannot find module '@nrwl/workspace/src/utilities/output'

See original GitHub issue

Current Behavior

Running npx add-nx-to-monorepo returns Cannot find module ‘@nrwl/workspace/src/utilities/output’

Expected Behavior

Install Nx with Cloud

Steps to Reproduce

run npx add-nx-to-monorepo

Failure Logs

image

Environment

can’t run nx report it says command nx not found

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Paulmolincommented, May 31, 2022

For information, I “fixed” this by adding the @nrwl/workspace to my root package.json. yarn add -D @nrwl/workspace Now I’m able to connect to the cloud.

0reactions
StalkAltancommented, Jul 11, 2022

We have removed the last few straggler references to @nrwl/workspace and @nrwl/nx-cloud should now work properly with workspaces that only contain the nx package. This includes the init generator.

Closing this issue, updating to latest should resolve issues for anyone who finds this issue in the future.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Monorepo – Yarn workspaces Typescript Node.JS project
To run the nodejs project locally, we run the following script: tsc --build && rollup -c && nodemon --inspect --watch ./ --watch ../../packages ......
Read more >
Internal Packages - Turborepo
External packages run their files through a bundler before ... Cannot find module 'math-helpers' or its corresponding type declarations.
Read more >
TypeScript Monorepos with Yarn - Semaphore CI
A tutorial showing how to configure TypeScript to work in a monorepo and building everything with CI/CD.
Read more >
Monorepo Setup with NPM and TypeScript - In Plain English
A: Just delete the node_modules folder and retry to install the package from the monorepo root. No workspaces found #. Q: I cannot...
Read more >
Things I wish I had known when I started JavaScript monorepo ...
During the install (running npm i), if a local path is a directory containing a package.json file, the npm reads it's dependencies (ignores ......
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