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
Change how spfx doctor detects SPFx version #4213
Comments
Sounds like a solid idea 👍 We could reference the |
Good idea indeed, I assume we should check the |
We've been using |
sounds like a plan 👍 |
Proposed solution:
Any feedback? |
Nope! Seems like a solid plan. |
+1 👍 |
I could work on this! |
Nice! All yours! |
@waldekmastykarz Just a minor question, am I correct to assumte that this should only be implemented at the method |
@MathijsVerbeeck correct, the logic is in the |
I would change nothing about the |
Got it. That makes sense. While you don't need the project loading logic, you'll be able to benefit from project root- and version detection. |
Exactly, that's what I would use it for indeed. Thanks for the feedback! |
Currently,
spfx doctor
detects SPFx version using npm which looks into node_modules installed in the working director. If npm doesn't return any results,spfx doctor
assumes there's no SPFx project and looks for the global SPFx version instead. This can lead to confusing results when you runspfx doctor
in an SPFx project that doesn't have dependencies restored yet. We should reconsider how we detect local dependencies and more clearly communicate what we're doing to avoid confusing users.The text was updated successfully, but these errors were encountered: