Forum Discussion
SPFx extension missing from yeoman.
Hello,
I am trying to build a SPFx extension for SharePoint online. When using Yeoman generator, I am not getting option to create a project for extension. Only option available in webpart.
Node version :- v8.12.0
npm version :- 6.4.1
SharePoint generator version:- 1.6.0
See attached screen shot for options.
Anyone has faced similar issue?
Can you verify which version of the generator you're using by executing:
npm ls -g --depth=0 @microsoft/generator-sharepoint
- Rishi GuptaBrass Contributor
After executing the above command, I get below result
`-- Pernille-Eskebo/generator-sharepoint@1.6.0
- Rishi GuptaBrass Contributor
The other thing which I noticed is that, target environment option is missing when creating the project using Yoeman. I tried uninstalling Yoeman and SharePoint generator and installed back. Still same issue. Thoughts?
- Rishi GuptaBrass Contributor
I cleaned up the parent folder which has app the dependencies added to it and started from scratch. It worked fine. I am not able to see all the options. Looks like it was referencing something from parent folder and skipping the option to select SharePoint online or SharePoint 2016.
Thanks for your help.
- BresleveloperCopper Contributor
Rishi Gupta I found in available only if i choose 2019 onward...
- AlexselivCopper ContributorMaybe it will help someone - in my case the issue was related to the settings in .yo-rc.json file. I had the option "isDomainIsolated": true - after removing it, additional options appeared: WebPart, Extension, Library, Adaptive Card Extension.
Answer from the thread below helped to figure it out:
https://learn.microsoft.com/en-us/answers/questions/885608/extension-is-missing-from-which-type-of-client-sid