Skip to content

spfx project upgrade fails when .yo-rc.json & package.json are out of sync #1408

Discussion options

You must be logged in to vote

They actually might. The way upgrade guidance is done is that v1.8 only knows how to upgrade v1.7 project. It doesn't know what's been done in the previous versions. So theoretically, if there is anything relevant done between v1.1.1 and v1.1.3 the upgrade guidance wouldn't contain these changes and you could end up with a broken project. That's theory. I've never looked at what's the reality of this because the mechanism worked so far, until you get to an issue like you mentioned :)

How about an alternative: before we start the upgrade logic, we add extra logic to verify the project's integrity and if there is anything out of the ordinary, we communicate that first. Would that address th…

Replies: 8 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@pschaeflein
Comment options

@waldekmastykarz
Comment options

@garrytrinder
Comment options

@waldekmastykarz
Comment options

Answer selected by waldekmastykarz
Comment options

You must be logged in to vote
1 reply
@pschaeflein
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants