nx-extensions
nx-extensions copied to clipboard
Stencil: Adding output targets requires all framework targets (angular, react vue) to be installed
Describe the bug If adding an output target to a library all supported output targets need to be installed. This is probably how the nxext code is implemented, so that it requires to have everything installed.
To Reproduce
- create a new stencil library (
nx g @nxext/stencil:lib web-components --buildable=true --style=scss
) within an Angular workspace - add output target for angular for that library (
nx g @nxext/stencil:add-outputtarget web-components --outputType=angular
) error on execution:
Cannot find module '@nx-plus/vue'
Require stack:
- C:\src\node_modules\@nxext\stencil\src\generators\add-outputtarget\lib\vue.js
- C:\src\node_modules\@nxext\stencil\src\generators\add-outputtarget\add-outputtarget.js
- C:\src\node_modules\@nrwl\tao\src\shared\workspace.js
after manually installing @nx-plus/vue
I still get an error:
Cannot find module '@nrwl/react'
Require stack:
- C:\src\node_modules\@nxext\stencil\src\generators\add-outputtarget\lib\react.js
- C:\src\node_modules\@nxext\stencil\src\generators\add-outputtarget\add-outputtarget.js
Expected behavior It should not be required to have everything installed, if only one part of the generator is used
@jase88 yes that's something I already working on.
This is still an issue - any update on a fix?