Open isaacplmann opened 1 year ago
hey @isaacplmann I will do, but just to be sure, this goes into addDependenciesToPackageJson
part as a dev dependency right?
I had a similar issue, I couldn't just run nx generate @ago-dev/nx-aws-cdk-v2:application myApp
- I had to methodically retry and manually install several dependencies before it would generate the app:
@nx/devkit
@nx/jest
@nx/linter
kinda unusable without this
@isaacplmann could you answer the question? @adrian-goe might still be waiting for you.
The easiest solution is to add the packages to the dependencies
in https://github.com/adrian-goe/nx-aws-cdk-v2/blob/main/packages/aws-cdk-v2/package.json
You can put them in the dependencies
or peerDependencies
. devDependencies
won't require the users of your package to have those packages installed.
I think that function is another way of adding the packages if you can't do it manually for some reason.
Any update on this I am using this "@ago-dev/nx-aws-cdk-v2": "^1.6.1" version
And when I run nx generate @ago-dev/nx-aws-cdk-v2:application common-infra
Getting this error: (0 , devkit_1.readWorkspaceConfiguration) is not a function
This plugin doesn't have an Nx version listed in the Nx Plugin Registry because the plugin doesn't include
@nx/devkit
as a dependency. Could you please release a version that fixes that?Thanks, Isaac (Nx Team)