6 votes
Accepted

Unable to setup SharePoint Framework Dev Environment: TypeError: lookup.flatMap is not a function

This is the issue related to yeoman. You can fix this issue by downgrading it from 4.0.0 to 3.1.1 npm install yo@3.1.1 -g This combination does not work @microsoft/generator-sharepoint@1.11.0 gulp@4....
user avatar
4 votes

SharePoint framework yo not showing all the options

You have to select "SharePoint Online only (latest)" or "SharePoint 2019 onwards, including SharePoint Online" for the question Which baseline packages do you want to target for your component(s)? to ...
user avatar
2 votes

SharePoint framework yo not showing all the options

Reason: SharePoint 2016 does not support SPFx extensions. This is because SharePoint 2016 on-premises doesn't support Modern UI. SharePoint Extensions are supported only in SharePoint 2019 and ...
user avatar
  • 28.2k
2 votes

SPFx Yeoman generates wrong package versions

Fixed by running: npm cache clear --force
user avatar
  • 33
2 votes
Accepted

SPFx development - npm audit vulnerabilities

With SPFx solutions, none of the npm packages are deployed to SharePoint, so you can ignore these audit warnings. If you had a custom solution that did deploy the npm packages themselves, yes you'd ...
user avatar
  • 28.9k
1 vote

SPFX 1.12 gulp serve-deprecated alternative

Note that https://docs.microsoft.com/en-us/sharepoint/dev/spfx/release-1.12.1 has recently been updated, indicating that you need to update your gulpfile.js to be able to run gulp serve
user avatar
1 vote

SPFX 1.12 gulp serve-deprecated alternative

Below are requirement to run and test SPFx 1.12.1 webpart. node version v14.15.5 +-- @microsoft/generator-sharepoint@1.12.1-rc.3 +-- gulp@4.0.2 +-- npm@6.14.11 `-- yo@4.0.0 gulp serve will work ...
user avatar
1 vote

Unable to setup SharePoint Framework Dev Environment: TypeError: lookup.flatMap is not a function

I am assuming that you have installed only one version of nodejs at a time. For SPFx generator SharePoint online you will require v10.24.0 of nodejs. Open command prompt and run following command in ...
user avatar
1 vote

Spfx: Change spfx Webpart environment from sharepoint online to sharepoint on prem

Its not just these few changes that you will help you convert. SP ON-prem only support SPFx 1.4 which only supports React 15(not latest React with Hooks) and so other libraries dependencies change ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible