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 1.9.0
version.
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 @angular/cli@6.2.9
or
npm install -g @pnp/generator-spfx @angular/cli@7.3.9
Reference - Angular elements in PnP SPFx generator
-
-
-
-
-
1never mind, looks like a regression in the latest version. Can you use the older version of the generator using
npm install -g @pnp/generator-spfx@1.8.1
and try – Gautam Sheth Sep 2 '19 at 11:17