adrian-goe / nx-aws-cdk-v2

MIT License
40 stars 13 forks source link

Include @nx/devkit as a dependency #972

Open isaacplmann opened 1 year ago

isaacplmann commented 1 year ago

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)

adrian-goe commented 1 year ago

hey @isaacplmann I will do, but just to be sure, this goes into addDependenciesToPackageJson part as a dev dependency right?

teaforchris commented 1 year ago

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
nubunto commented 11 months ago

kinda unusable without this

thoroc commented 8 months ago

@isaacplmann could you answer the question? @adrian-goe might still be waiting for you.

isaacplmann commented 7 months ago

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.

parimalyeole1 commented 2 months ago

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