If you follow the Getting started guide without the Custom UI part (i.e. without installing the @nx/react plugin), then building a generated Forge app will fail because the @nx/webpack plugin is missing.
This can easily be fixed by adding the @nx/webpack plugin. However, we should make sure that the application generator ensures the @nx/wepack dependency is installed. This can be achieved via the ensurePackage method of the Nx DevKit.
If we can do this for all required dependencies we can probably remove most peer dependency declarations.
If you follow the Getting started guide without the Custom UI part (i.e. without installing the
@nx/react
plugin), then building a generated Forge app will fail because the@nx/webpack
plugin is missing.This can easily be fixed by adding the
@nx/webpack
plugin. However, we should make sure that the application generator ensures the@nx/wepack
dependency is installed. This can be achieved via theensurePackage
method of the Nx DevKit.If we can do this for all required dependencies we can probably remove most peer dependency declarations.