Forum Discussion

Rishi Gupta's avatar
Rishi Gupta
Brass Contributor
Sep 18, 2018

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 Gupta's avatar
      Rishi Gupta
      Brass 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 Gupta's avatar
        Rishi Gupta
        Brass 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.

         

Resources