Discussing Shopify Functions development, deployment, and usage in Shopify apps.
After creating a new remix project, I generated extension with template "product_discounts".
Then, after running npm run dev, I got an error:
Error: Command failed with exit code 3221225781: npm exec -- javy --version
I'm using shopify version 3.50.1 I also installed javy globally.
Solved! Go to the solution
This is an accepted solution.
OK this is what I end up doing:
C:\Users\<user>\AppData\Local\binarycache\Cache\javy-v1.2.0
20:41:41 │ extensions │ Building function product-discount...
20:41:41 │ extensions │ Building GraphQL types...
20:41:43 │ remix │
20:41:43 │ remix │ 💿 remix dev
20:41:43 │ remix │
20:41:46 │ remix │ info building...
20:41:48 │ extensions │ Bundling JS function...
20:41:48 │ extensions │ Running javy...
20:41:49 │ remix │ info built (4s)
20:41:51 │ remix │ [shopify-api/INFO] version 8.0.2, environment Remix
20:41:52 │ extensions │ Done!
Any additional detail on the javy failure if you run the following?
npm run dev -- --verbose
Nick Wesselman | Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
Not exactly. Requests to the Partners accounts and
Error: Command failed with exit code 3221225781: npm exec -- javy --version
── external error ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Error coming from `npm exec -- javy --version`
Command failed with exit code 3221225781: npm exec -- javy --version
If I switch to shopify version 3.48.4, as in a function example on github, I now get
── external error ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Error coming from `npm exec -- javy compile -d -o C:/path-to-the-project/extensions/product-discount/dist/function.wasm dist/function.js --wit
C:/path-to-the-temp/Temp/xxx/javy-world.wit -n shopify-function`
Command failed with exit code 3221225781: npm exec -- javy compile -d -o C:/path-to-the-project/extensions/product-discount/dist/function.wasm dist/function.js --wit
C:/path-to-the-temp/Temp/xxx/javy-world.wit -n shopify-function
When i run
npm exec -- javy compile -d -o
in the command line myself, it fails with exit code 1 without any further logs
Can you try deleting any javy binaries in the following path, and then try again?
C:\Users\<user>\AppData\Local\binarycache\
If that doesn't solve, can you try running the javy binary directly from this path, after it's downloaded again?
Nick Wesselman | Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
Deleting binarycache didn't help.
I'm sorry but I don't know how to run the javy binary?
This is an accepted solution.
OK this is what I end up doing:
C:\Users\<user>\AppData\Local\binarycache\Cache\javy-v1.2.0
20:41:41 │ extensions │ Building function product-discount...
20:41:41 │ extensions │ Building GraphQL types...
20:41:43 │ remix │
20:41:43 │ remix │ 💿 remix dev
20:41:43 │ remix │
20:41:46 │ remix │ info building...
20:41:48 │ extensions │ Bundling JS function...
20:41:48 │ extensions │ Running javy...
20:41:49 │ remix │ info built (4s)
20:41:51 │ remix │ [shopify-api/INFO] version 8.0.2, environment Remix
20:41:52 │ extensions │ Done!
Hey,
I am still facing this issue after following your steps. Could you please brief in detail.