sharepoint TypeError: lookups.flatMap is not a function
13
I resolved this by downgrading my gulp and yeoman versions.
First checked to see what I had installed:
npm list -g --depth=0
Output:
+-- @microsoft/[email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
-- [email protected]
So I uninstalled both gulp and yeoman:
npm uninstall -g gulp
npm uninstall -g yo
Then installed older versions:
npm install -g [email protected]
npm install -g [email protected]
Then was able to generate the SharePoint framework project successfully after running:
yo @microsoft/sharepoint
Once it completed, I was able to run the following from inside the SharePoint framework project directory to launch the local workbench:
gulp serve
Note: If if not already done so once, you need to generate a development certificate inside the SharePoint framework project directory:
gulp trust-dev-cert