You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should extend the SPFx project version detection logic with checking if .yo-rc.json and package.json are in sync.
Currently, when detecting SPFx project versions we look at .yo-rc.json and fallback to package.json if necessary. In some cases however, the package versions might be updated without aligning the version number in .yo-rc.json which could lead to us incorrectly detecting project version.
We should change the version detection logic so that it gets numbers both from .yo-rc.json and package.json and then controls if they point to the same SPFx version. If they don't, the command should return error to avoid incorrect output.
The text was updated successfully, but these errors were encountered:
Yes, this is a known issue where we don't pick up all @microsoft packages in the upgrade process. We have a number of issues created to change this behavior but at the moment we look only at the standard packages that are referenced when you create a project so whatever else you add yourself, that's not included in the report.
I hope we'll have this behavior changed soon because, like you noticed, it leads to broken projects - something we'd want people to avoid.
Related to #1475, #1487
We should extend the SPFx project version detection logic with checking if
.yo-rc.json
andpackage.json
are in sync.Currently, when detecting SPFx project versions we look at
.yo-rc.json
and fallback topackage.json
if necessary. In some cases however, the package versions might be updated without aligning the version number in .yo-rc.json which could lead to us incorrectly detecting project version.We should change the version detection logic so that it gets numbers both from .yo-rc.json and package.json and then controls if they point to the same SPFx version. If they don't, the command should return error to avoid incorrect output.
The text was updated successfully, but these errors were encountered: