Skip to content

fix(deploy): show clear error on wasp version mismatch#3944

Open
Hassad674 wants to merge 1 commit intowasp-lang:mainfrom
Hassad674:fix/deploy-version-mismatch-error
Open

fix(deploy): show clear error on wasp version mismatch#3944
Hassad674 wants to merge 1 commit intowasp-lang:mainfrom
Hassad674:fix/deploy-version-mismatch-error

Conversation

@Hassad674
Copy link

Fixes #3209

When the Wasp CLI version didn't match the project version, wasp deploy fly showed a generic 'not a valid Wasp project' error. Now parses stderr from wasp info to detect version mismatches and shows the specific versions involved.

  • Update e2e tests
  • I updated the tests (added vitest tests for version mismatch parsing)
  • Update docs

When the Wasp CLI version doesn't match the project version,
`wasp deploy` now detects the version mismatch from `wasp info`
output and shows a clear error message instead of the generic
"invalid wasp directory" error.
@Hassad674 Hassad674 requested a review from a team as a code owner March 19, 2026 18:56
@Hassad674 Hassad674 requested review from sodic and removed request for a team March 19, 2026 18:56
@cprecioso
Copy link
Member

Hi @Hassad674, thanks for the contribution!

A couple of things before taking a look into this:

  • Can you please use the pull request template for the body description, and follow the instructions there?
  • Have you tried deploying a project locally with the changes you're proposing?
  • Is this PR mainly vibecoded? Do you personally understand the changes done and why they were proposed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve wrong version error message in wasp deploy

2 participants