VM verification or deserialization error on pkg publish

When trying to deploy a pkg on testnet - i’m seeing this error:

> sui client publish .          
INCLUDING DEPENDENCY MoveStdlib
INCLUDING DEPENDENCY Sui
INCLUDING DEPENDENCY token
INCLUDING DEPENDENCY multicoin
BUILDING triex
Error executing transaction '5JyHnPPrzhKWWrt1De2UgAiKQVwvrY5svMpVzZqh34Jh': VMVerificationOrDeserializationError in command 0

This error isn’t particularly verbose, and i can’t seem to find anything that gives me more information about where exactly it broke. I’m unsure how to debug this. I see docs for VMVerificationOrDeserializationError in command 0 showing common errors associated but i don’t see any of those common errors being logged anywhere. I tried to run sui client verify-bytecode-meter against each module, and nothing threw up any errors. Any ideas? I am using

> sui --version            
sui 1.63.1-homebrew

Fixed this after feedback from someone in Discord. The solution was to reformat all of the packages according to the Package Management Migration document in the SUI Docs - and then re-deploy them all.

I’m not sure why this works. Maybe it’s something to do with either different version mismatches between what CLI version packages were deployed with (dependency packages were deployed with an older pre-Move.toml-migration version and I was trying to deploy the newer packages with the post-migration version) - or maybe due to Move.toml formatting mismatches between dependencies and main pkgs causing an issue?