Please confirm that you have:
In which of these areas are you experiencing a problem?
Extension
Expected behavior
When I try to run npm run deploy on an app that has up to (11) Shopify Functions written in plain JavaScript, the app should be able to build and deploy the extensions to the new app version.
When I try to run npm run build inside the directory of a Shopify function extension, the function should build successfully and produce a dist directory with function.wasm and function.js
Actual behavior
When running npm run deploy the process fails and exits with this error: (the function in which it fails specifically changes every time you run it)
── external error ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Error coming from C:/Users/Francisco/Desktop/Code/Shopify/BluedgeUSA/apps/rso-custom-app/node_modules/@shopify/cli/bin/javy compile -d -o C:/Users/Francisco/Desktop/Code/Shopify/BluedgeUSA/apps/rso-custom-app/extensions/discount-order-membership/dist/function.wasm dist/function.js
Command failed with exit code 1: C:/Users/Francisco/Desktop/Code/Shopify/BluedgeUSA/apps/rso-custom-app/node_modules/@shopify/cli/bin/javy compile -d -o
C:/Users/Francisco/Desktop/Code/Shopify/BluedgeUSA/apps/rso-custom-app/extensions/discount-order-membership/dist/function.wasm dist/function.js
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
The same error occurs when running npm run build on a specific function directory.
I came across this Shopify Forum post where someone had the same issue:
https://community.shopify.com/c/shopify-functions/javy-error-on-npm-run-dev/m-p/2698254
The answer from the Shopify Staffs clarifies this is an issue with the latest version of the CLI and to downgrade to 3.64.1
I can confirm downgrading to version 3.64.1 fixes the issue.
Verbose output
$ npm run build --verbose
npm verbose cli C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js
npm info using npm@10.7.0
npm info using node@v20.15.0
npm verbose title npm run build
npm verbose argv "run" "build" "--loglevel" "verbose"
npm verbose logfile logs-max:10 dir:C:\Users\Francisco\AppData\Local\npm-cache\_logs\2024-08-07T21_25_09_108Z-
npm verbose logfile C:\Users\Francisco\AppData\Local\npm-cache\_logs\2024-08-07T21_25_09_108Z-debug-0.log
> discount-membership-order@0.0.1 build
> npm exec -- shopify app function build
npm verbose cli C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js
npm info using npm@10.7.0
npm info using node@v20.15.0
npm verbose title npm exec shopify app function build
npm verbose argv "exec" "--" "shopify" "app" "function" "build"
npm verbose logfile logs-max:10 dir:C:\Users\Francisco\AppData\Local\npm-cache\_logs\2024-08-07T21_25_09_418Z-
npm verbose logfile C:\Users\Francisco\AppData\Local\npm-cache\_logs\2024-08-07T21_25_09_418Z-debug-0.log
╭─ info ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ You are running a global installation of Shopify CLI │
│ │
│ This project has Shopify CLI as a local dependency in package.json. If you prefer to use that version, run the command with your │
│ package manager (e.g. npm run shopify). │
│ │
│ For more information, see Shopify CLI documentation [1] │
│ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
[1] https://shopify.dev/docs/apps/tools/cli
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Building GraphQL types ...
npm verbose cli C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js
npm info using npm@10.7.0
npm info using node@v20.15.0
npm verbose title npm exec graphql-code-generator --config package.json
npm verbose argv "exec" "--" "graphql-code-generator" "--config" "package.json"
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Building GraphQL types ...
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Bundling JS function ...
── external error ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Error coming from `C:/Users/Francisco/Desktop/Code/Shopify/BluedgeUSA/apps/rso-custom-app/node_modules/@shopify/cli/bin/javy compile -d -o
C:/Users/Francisco/Desktop/Code/Shopify/BluedgeUSA/apps/rso-custom-app/extensions/discount-order-membership/dist/function.wasm dist/function.js`
Command failed with exit code 1: C:/Users/Francisco/Desktop/Code/Shopify/BluedgeUSA/apps/rso-custom-app/node_modules/@shopify/cli/bin/javy compile -d -o
C:/Users/Francisco/Desktop/Code/Shopify/BluedgeUSA/apps/rso-custom-app/extensions/discount-order-membership/dist/function.wasm dist/function.js
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
npm verbose exit 1
npm verbose code 1
npm verbose exit 1
npm verbose code 1
Reproduction steps
- Upgrade your Shopify CLI to latest version 3.65.1
- Attempt to build or deploy (1) or many vanilla JavaScript Shopify functions using NPM Javy 0.1.2
- Use Windows 10 in its latest version
Operating System
Windows 10
Shopify CLI version (check your project's package.json if you're not sure)
3.65.1
Shell
Git Bash
Node version (run node -v if you're not sure)
v20.15.0
What language and version are you using in your application?
Node 20.15.0
Please confirm that you have:
In which of these areas are you experiencing a problem?
Extension
Expected behavior
When I try to run
npm run deployon an app that has up to (11) Shopify Functions written in plain JavaScript, the app should be able to build and deploy the extensions to the new app version.When I try to run
npm run buildinside the directory of a Shopify function extension, the function should build successfully and produce adistdirectory withfunction.wasmandfunction.jsActual behavior
When running
npm run deploythe process fails and exits with this error: (the function in which it fails specifically changes every time you run it)── external error ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Error coming from
C:/Users/Francisco/Desktop/Code/Shopify/BluedgeUSA/apps/rso-custom-app/node_modules/@shopify/cli/bin/javy compile -d -o C:/Users/Francisco/Desktop/Code/Shopify/BluedgeUSA/apps/rso-custom-app/extensions/discount-order-membership/dist/function.wasm dist/function.jsCommand failed with exit code 1: C:/Users/Francisco/Desktop/Code/Shopify/BluedgeUSA/apps/rso-custom-app/node_modules/@shopify/cli/bin/javy compile -d -o
C:/Users/Francisco/Desktop/Code/Shopify/BluedgeUSA/apps/rso-custom-app/extensions/discount-order-membership/dist/function.wasm dist/function.js
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
The same error occurs when running
npm run buildon a specific function directory.I came across this Shopify Forum post where someone had the same issue:
https://community.shopify.com/c/shopify-functions/javy-error-on-npm-run-dev/m-p/2698254
The answer from the Shopify Staffs clarifies this is an issue with the latest version of the CLI and to downgrade to 3.64.1
I can confirm downgrading to version 3.64.1 fixes the issue.
Verbose output
Reproduction steps
Operating System
Windows 10
Shopify CLI version (check your project's
package.jsonif you're not sure)3.65.1
Shell
Git Bash
Node version (run
node -vif you're not sure)v20.15.0
What language and version are you using in your application?
Node 20.15.0