'nrwl nx node angular version compatibility
I'm trying to start learning nrwl/nx, node, angular. I can't even get through nrwl's simple tutorial. I'm struck on https://nx.dev/l/r/tutorial/07-share-code step. I get the following error:
Error: apps/todos/src/app/app.component.ts:3:22 - error TS2307:
Cannot find module '@TESTNX02/data' or its corresponding type declarations.
The offending code is:
import { ToDo } from '@TESTNX02/data'
I was wondering whether this is caused by incompatibility between nrwl/nx, node, and angular in my setup. How do I ensure that I'm using compatible versions?
Solution 1:[1]
"npx create-nx-workspace@latest" creates the workspace with the latest version of Nx. When you install Angular with the command "npm install --save-dev @nrwl/angular" Nx installs the compatible version of Angular. So, no need to worry about version compatibility.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | RT. |
