sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Baseline packages are not asked and by default installing on premise during webpart creation using yo

Open Hriday-Muppidi opened this issue 7 years ago • 5 comments

Hello all, I've been tryin to create a webpart project using yo @microsoft/sharepoint and i've been facing problem with the workbench not being opened. I've researched and found that workbench is only opening through gulp serve and especially for sharepoint online webparts rather than onpremise. But by default yo @microsoft/sharepoint is creating an on premise webpart and not prompting me to choose the baseline packages for sharepoint online. cmd for yo Can someone suggest me how to migrate to sharepoint online

Hriday-Muppidi avatar Oct 15 '19 06:10 Hriday-Muppidi

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

msft-github-bot avatar Oct 15 '19 06:10 msft-github-bot

Check and try to re-set up your SharePoint Framework development environment follow the steps below.

1.Install NodeJS LTS version 10

2.Install Yeoman and gulp

npm install -g yo gulp

3.Install Yeoman SharePoint generator

npm install -g @microsoft/generator-sharepoint

And then run the Node.js command prompt, and using "yo @microsoft/sharepoint" to create SPFx web part.

Capture

Dennis-LZ avatar Oct 15 '19 08:10 Dennis-LZ

If you aren't being prompted for the type of project (baseline packages), that sounds like you have an extra .yo-rc file in your folder hierarchy.

Check the closed issues in this repo as there are plenty of people who've posted about this with the resolution: https://github.com/SharePoint/sp-dev-docs/issues?q=is%3Aissue+.yo-rc+is%3Aclosed

andrewconnell avatar Oct 21 '19 09:10 andrewconnell

Closing issue as "answered". If you encounter similar issue(s), please open up a NEW issue. Thank you.

msft-github-bot avatar Oct 24 '19 10:10 msft-github-bot

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

msft-github-bot avatar Jan 23 '20 06:01 msft-github-bot