-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
π Bug report: Existing Spfx projects are not shown toolkit actions #329
Comments
I am not sure if this is by design in which case my ask would be a feature request instead of this submission as a bug. |
@ervingayle thank you for opening up the issue. vscode-viva/src/panels/CommandPanel.ts Lines 39 to 45 in dd599e8
May I kindly ask you to share the SPFx project you are upgrading? I wonder how old it is and if valid at all from very beginning as from what I recall the Seems to me the missing |
Hi @Adam-it, This issue first showed up when I tried to upgrade my Octoberfest submission. The project was already at SPFx 1.16.1! It is upgraded now but here is another project at SPFx 1.20.0 with no yo-rc.json file. The Microsoft CLI also doesn't flag this scenario. I did see a discussion here about the decision to use yo-rc.json and not depend on package.json solely so I agree with that. My question for discussion was if there is value in detecting the existence of the file and if its not there then creating it or making a recommendation that it's created as part of updating to the latest version. I also see even more projects without a .nvmrc file. This is not a criticism of any of the projects, as it affected me, I wanted to see what was different for projects that I got from the gallery vs trying to upgrade the sample and then using winmerge, I found these two differences. Perhaps the right thing to do is not look at adding anything to the toolkit which works very well and just update the repo with the files since they apply from SPFx 1.0. |
I checked the initial commit of the sample you pointed out pnp/sp-dev-fx-webparts@53f122b#diff-2b16dde63e869b8c425a4d2975b98aa39ac8a2b2298bda6464c145ed52526d18 TBH I think it is a good idea for a separate issue in the SPFx sample repo to sort it out the samples itself as SPFx Toolkit might be not the only tool/script affected by this. As for |
@ervingayle would you like to discuss this issue any further or you thing we are aligned?
What is your take on that? |
Hi @Adam-it |
@ervingayle cool. Would you be so kind and help us out and create issue for missing
I hope the above info will help you out π. |
Awesome. You Rock π€© |
β Priority
(Low)βΉοΈ Something is a little off
π Describe the bug
When upgrading an SPFx project that does not have a yo-rc file, the ability to use the toolkit actions are not shown. While this may be by design, the project scaffolding and packages may be upgraded but you still don't get the toolkit functionality in this scenario
π£ Steps To Reproduce
Leverage any SPFx project and remove the yo-rc or nvmrc files and reopen VSCode and attempt to use the SPFx Toolkit. You will notice that the toolkit does not detect or load any of the tasks including deploy to appcatalog
π Expected behavior
I think that an ideal scenario would be to prompt for the creation of a yo-rc or nvmrc file after before or after upgrade guidance has been generated.
π· Screenshots
No response
βSharePoint Framework Toolkit version
4.2.0
βNode.js version
18.18.0
π€ Additional context
No response
The text was updated successfully, but these errors were encountered: