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.
Any additional detail on the javy failure if you run the following?
npm run dev -- --verbose
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\
If that doesn't solve, can you try running the javy binary directly from this path, after it's downloaded again?
Deleting binarycache didn’t help.
I’m sorry but I don’t know how to run the javy binary?
OK this is what I end up doing:
- Download binary from Javy repo
- Put it in the binarycache folder- mind that javy-v1.2.0 is a file, renaming from .exe is required
C:\Users\
- Run
```css
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!
fc9790
7
Hey,
I am still facing this issue after following your steps. Could you please brief in detail.