I’m building a Typescript based function using the function template and when I run shopify app dev
I get the error Error while updating drafts: failed to compile WebAssembly module .
Hi @stanton_xu –
What version of Shopify CLI are you using? After checking (please let us know!), can you try updating to the latest?
-Nick
Hi, @NickWesselman
Thanks for your reply
My cli version is 3.71.1. I found that bundle > index.wasm is not a copy of function.wasm, but base64 encoded. When calling updateExtensionDraft, cli will base64 encode the bundle > index.wasm file again. Remove the base64 encoding at any position and it will execute normally.