"Extension" is missing from "Which type of client-side component to create?" when creating SPFx

john john 941 Reputation points
2022-06-11T17:35:13.623+00:00

I am using Node.js 14.18.1 (x64) and npm.

When i run D:\extensionfullstack>yo @microsoft/sharepoint I got this :-

D:\>cd D:\extensionfullstack  
  
D:\extensionfullstack>yo @microsoft/sharepoint  
  
     _-----_     ╭──────────────────────────╮  
    |       |    │      Welcome to the      │  
    |--(o)--|    │  SharePoint Client-side  │  
   `---------´   │         Solution         │  
    ( _´U`_ )    │     Generator@1.13.0     │  
    /___A___\   /╰──────────────────────────╯  
     |  ~  |  
   __'.___.'__  
 ´   `  |° ´ Y `  
  
Let's create a new SharePoint solution.  
? What is your solution name? extensionfullstack  
? Only SharePoint Online (latest) is supported.  For earlier versions of SharePoint (2016 and 2019) please use the 1.4.1  
 version of the generator. SharePoint Online only (latest)  
? Where do you want to place the files? Use the current folder  
? Do you want to allow the tenant admin the choice of being able to deploy the solution to all sites immediately without  
 running any feature deployment or adding apps in sites? Yes  
? Will the components in the solution require permissions to access web APIs that are unique and not shared with other c  
omponents in the tenant? Yes  
? Which type of client-side component to create?  
> WebPart  

Where "Extension" option is missing any advice? Thanks

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,624 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,573 questions
0 comments No comments
{count} votes

Accepted answer
  1. RaytheonXie_MSFT 31,071 Reputation points Microsoft Vendor
    2022-06-13T02:17:30.553+00:00

    Hi @john john ,
    If you choose yes in Will the components in the solution require permissions to access web APIs that are unique and not shared with other components in the tenant?. It means you are creating isolated solution then make sure your solution have only webparts because it doesn’t work in extensions. As a workaround, please choose NO in this option if you want to create an extension

    210599-image.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful