Baseline packages are not asked and by default installing on premise during webpart creation using yo
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.
Can someone suggest me how to migrate to sharepoint online
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
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.
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
Closing issue as "answered". If you encounter similar issue(s), please open up a NEW issue. Thank you.
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