nrwl / nx

Smart Monorepos · Fast CI
https://nx.dev
MIT License
23.29k stars 2.32k forks source link

Nx errors when run in a workspace generated by the Angular CLI #2021

Closed jdpearce closed 4 years ago

jdpearce commented 4 years ago

Expected Behavior

Some kind of output which indicates that Nx is aware it can't be used in the current workspace. Possibly even a message which tells the user how to upgrade the current workspace to an Nx workspace?

At the very least, not an error.

Current Behavior

▶ nx
internal/modules/cjs/loader.js:638
    throw err;
    ^

Error: Cannot find module '<cut for brevity>/node_modules/@nrwl/cli/bin/nx.js'

Steps to Reproduce

Run nx in a workspace generated by the Angular CLI.

e.g.

ng generate new-workspace --create-application=false cd new-workspace nx

This is far too easily done if you're playing with Angular CLI and Nx workspaces side by side :)

FrozenPandaz commented 4 years ago

Hi, sorry about this.

This was mislabeled as stale. We are testing ways to mark not reproducible issues as stale so that we can focus on actionable items but our initial experiment was too broad and unintentionally labeled this issue as stale.

github-actions[bot] commented 1 year ago

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.