twittwer / nx-tools

Workspace for Nx Plugins.
40 stars 7 forks source link

[Bug] Package "@twittwer/compodoc" was found but does not support schematics #81

Open kartikjagdale opened 11 months ago

kartikjagdale commented 11 months ago

Whenever I try to run

npx nx g @twittwer/compodoc:config my-app-name

I get below error

Package "@Twittwer/compodoc" was found but does not support schematics

Any Resolution to the above issue?

twittwer commented 11 months ago

Can you provide a reproduction?

It seems to work with a clean workspace:

// create workspace (17.0.3 is latest at the moment)
npx create-nx-workspace@17.0.3 org --preset=angular --appName=app // workspace type: integrated

// create lib
npx nx g @nx/angular:library lib --directory=libs/lib --projectNameAndRootFormat=as-provided

// install plugin (1.10.0 is latest at the momement)
npm i -E -D @twittwer/compodoc@1.10.0

// generate config for app & lib
npx nx g @twittwer/compodoc:config app
npx nx g @twittwer/compodoc:config lib
kartikjagdale commented 11 months ago

@twittwer I checked and I see that we are not using @nx/angular but we are using @nrwl/angular@14.8.7 And when I create any lib or app using this version, I think @twittwer/compodoc doesn't support its folder structure. Hence the error - Package "@Twittwer/compodoc" was found but does not support schematics

If you use@nrwl/angular@14.8.7 and create an lib or app then this issue occurs.