Optionalcause: unknownOptional ReadonlycauseUnderlying validation error, typically a ZodError with the failing paths.
ReadonlyengineVersion of the running SDK.
Optional ReadonlyprojectSDK version recorded in the payload, when present.
Readonlyreasonnewer-version when the payload was saved by a newer SDK than the running one (the host
should suggest updating the editor), otherwise invalid (corrupt or malformed data).
OptionalstackStatic OptionalprepareOptional override for formatting stack traces
Staticstack
Thrown when a serialized project payload fails validation before being loaded.
The error is always thrown before any engine state is mutated: an
init()that rejects with it remains retryable, and adeserialize()that rejects with it leaves the current project running.