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

Yeoman Sharepoint generator always creates Preview project

Open kspranesh opened this issue 9 years ago • 9 comments

Category

  • [ ] Issue : After installing latest Yo @microsoft generator when i try to create a project, even if i select the type of client side component as Webpart, the next option appears as Which type of Client side extension to create.

Steps to Reproduce

Please refer to the screenshot for the issue. I am selecting the component type as Webpart, the next option presented is with the component type as Extension.

yo-issue

The sharepoint generator version i have is 1.2.0

Please help!

Also, i need instructions to remove and uninstall the yeoman Sharepoint generator from my system to do clean install. I tried to execute npm -uninstall -g generator @microsoft/[email protected] nothing happens.

kspranesh avatar Aug 30 '17 02:08 kspranesh

Hi @kspranesh, we can't seem to reproduce the issue with the given information, so would double check following things.

Ensure that you have uninstalled old package and reinstalled new version Uninstall old version by executing npm uninstall --global @microsoft/generator-sharepoint, which will clean up any old version of the generator. You can then double check all the installed packages globally by using npm list -g --depth=0 to confirm that uninstallation has been completed.

After this you can then simply install the latest package by executing npm install -g @microsoft/generator-sharepoint.

Version details if this does not resolve your issue, we would need additional details to get your issue resolved, which would be following:

  • What OS you're using?
  • What's your Node version?
  • What's your npm version?

This way we can potentially reproduce the issue, which is a prerequisite to get it resolved based on facts.

Thanks for the additional details advance.

VesaJuvonen avatar Aug 30 '17 07:08 VesaJuvonen

Hi @VesaJuvonen

Many thanks for looking into my request. I followed the steps you mentioned to ensure i have removed and re-installed latest version of sharepoint generator and verified that issue still persists. Please find attached are few screenshots from my testing. I am executing this on Windows 10 OS.

Uninstalled all existing versions yo-issue0

Current versions node versions

In both cases below i have selected "Webpart"

Create a new project in an existing folder yo-issue1

Create a new project in a new folder yo-issue2

Kindly let me know if you need any further details.

Regards, Pranesh

kspranesh avatar Aug 30 '17 12:08 kspranesh

I'm seeing the same 'issue' here.

Could it be that all the (Preview) texts are leftovers or planned?

I am getting the latest version as the 'allow tenant admin ....' option appears.

Pieter-Veenstra avatar Aug 30 '17 14:08 Pieter-Veenstra

Hmm... I'm running exactly the same versions locally (npm, node) on my machine without any issues, tested with different console UIs as well. Let me test this with clean Win10 in Azure for trying to do repro.

VesaJuvonen avatar Aug 30 '17 17:08 VesaJuvonen

Hi,

It worked for me 2 days back and when yesterday i tried to add new webpart to the same project i started seeing this issue. Later on i created an entirely new project to verify and this issue occurred even there.

Regards, Pranesh


From: Vesa Juvonen [email protected] Sent: Wednesday, August 30, 2017 5:41 PM To: SharePoint/sp-dev-docs Cc: kspranesh; Mention Subject: Re: [SharePoint/sp-dev-docs] Yeoman Sharepoint generator always creates Preview project (#816)

Hmm... I'm running exactly the same versions locally on my machine without any issues, tested with different console UIs as well. Let me test this with clean Win10 in Azure for trying to do repro.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/SharePoint/sp-dev-docs/issues/816#issuecomment-326065767, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMQKeOhbapZwRXiAOyi5W4wDIQ97uVz4ks5sdZ7SgaJpZM4PGyp7.

kspranesh avatar Aug 30 '17 17:08 kspranesh

@VesaJuvonen , what is the best way to recognize if RC0 is used or an earlier version? Is the RC0 version still marked with all the Preview warnings?

Pieter-Veenstra avatar Sep 01 '17 10:09 Pieter-Veenstra

You can see this from the package.json of the outcome projects after the template is executed, but unless mistaken, in this case, you can't even execute the flow for some reason. This is a tough one since we can't reproduce it on a clean computer with matching version numbers.

VesaJuvonen avatar Sep 01 '17 11:09 VesaJuvonen

Hi, I uninstalled everything including npm and re-installed everything from scratch and it seems to have resolved the issue. Thanks for your attention in this regard.

kspranesh avatar Sep 19 '17 16:09 kspranesh

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 29 '20 00:01 msft-github-bot