App reviews, troubleshooting, and recommendations
Using the Shopify CLI 3.X, I've successfully created and published Checkout UI Extensions and Functions within my Node.js app. Recently, I created another app using the same process as before, but I am now hitting an error while trying to build the function and deploy to Shopify.
Specifically, when I execute "npm run deploy", my Shopify Functions are not compiling to wasm. In the extensions/<function-name>/dist/ folder of my new app, there is only a function.js file and no function.wasm:
Running validation ... Error: The function extension <function-name> hasn't compiled the wasm in the expected path: /Users/<user>/Documents/projects/shopify/<app-name>/extensions/<function-name>/dist/function.wasm
I saw another post here with the same bug, but their solution of updating the Node version did not resolve the error. I have tried upgrading and downgrading versions of Node, npm, and the Shopify CLI. I have also tried editing the package.json and package-lock.json to manually copy dependencies from my previous app, where this functionality was working. Any ideas how to move forward?
Node version: v20.1.0
npm version: 9.6.4
ruby version: 3.2.1
Shopify CLI version: 3.47.5
Solved! Go to the solution
This is an accepted solution.
With help from the Shopify dev team, we identified that the root of the issue was the javy-cli version. To address this error:
npm install -g javy-cli
rm -rf /Users/<user>/Library/Caches/binarycache/*
npm run deploy
Voila! Web assembly should successfully be compiled in dist/function.wasm 🙂
This is an accepted solution.
With help from the Shopify dev team, we identified that the root of the issue was the javy-cli version. To address this error:
npm install -g javy-cli
rm -rf /Users/<user>/Library/Caches/binarycache/*
npm run deploy
Voila! Web assembly should successfully be compiled in dist/function.wasm 🙂
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025