Forum Discussion
SPFx extension missing from yeoman.
Can you verify which version of the generator you're using by executing:
npm ls -g --depth=0 @microsoft/generator-sharepoint
- Rishi GuptaSep 19, 2018Brass 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 GuptaSep 19, 2018Brass 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.
- Rishi GuptaSep 19, 2018Brass Contributor
I tried to do some more research and found that .yo-rc.json was having below configurations. Since the environment is onprem thats why extensions were not showing. The Yoeman was referring this file while creating the new solution.
{"@microsoft/generator-sharepoint": {"isCreatingSolution": true,"environment": "onprem","version": "1.6.0","libraryName": "app-extension","libraryId": "c10653e7-a74c-4001-a1d9-ab6e3a778a60","packageManager": "npm","componentType": "webpart"}}
- Rishi GuptaSep 19, 2018Brass Contributor
After executing the above command, I get below result
`-- Pernille-Eskebo/generator-sharepoint@1.6.0