How we can enable Angular elements in SPFx webpart using @pnp/spfx generator?
You also need to install the angular CLI. If that is not installed, this option is disabled.
To install the CLI, you can do that as below:
npm install -g @angular/cli
Once installed, this option will be enabled.
Update - based on comments.
Looks like there is some sort of regression in the
To use the angular elements with the latest version, you need to use an older version of Angular CLI as below:
npm install -g @pnp/generator-spfx @firstname.lastname@example.org
npm install -g @pnp/generator-spfx @email@example.com
Reference - Angular elements in PnP SPFx generator