Open ElonMuskOfficial opened 1 month ago
facing same issue with the shipping discount extension
https://github.com/Shopify/cli/issues/2626 Someone mentioned the same problem in this link
@zane-wky I tried but it not working in my system
I found a solution to the issue. Here are the steps I followed:
Downloaded javy-x86_64-windows-v1.4.0.gz
from the Javy GitHub releases page.
Extracted the file to get javy.exe
.
Copied javy.exe
to the directory: C:\Users\<username>\AppData\Local\binarycache\Cache
.
Renamed javy.exe
to javy-v2.0.0
(removed the .exe
extension).
Ran the project again, and it worked successfully.
These steps resolved the issue for me.
Hope this helps!
Im seeing the same error come from shopify app function build
when trying to build a discount extension
Swapping in the binary from the Javy release page hasnt resolved it and neither has using the FORCE_RELEASE
env var that is provided by Javy. Ive also deleted the javy binaries from the cache as mentioned here and here
After trying the binary download and rename to no avail i was able to get a fix by doing the following
cmd
not powershellAdministrator@ip-AC1F06F2 MINGW64 ~/AppData/Local/binarycache/Cache
$ ./javy-v2.0.0
C:/Users/Administrator/AppData/Local/binarycache/Cache/javy-v2.0.0: error while loading shared libraries: VCRUNTIME140_1.dll: cannot open shared object file: No such file or directory
below solution worked for me!!!
I found a solution to the issue. Here are the steps I followed:
Downloaded javy-x86_64-windows-v1.4.0.gz from the Javy GitHub releases page.
Extracted the file to get javy.exe.
Copied javy.exe to the directory: C:\Users\
Renamed javy.exe to javy-v2.0.0 (removed the .exe extension).
Ran the project again, and it worked successfully.
These steps resolved the issue for me.
Hope this helps!
Installing Visual C++ Redistributable appears to be the right solution — I would not recommend renaming binaries as there are great things in Javy 2.0 that you will want to take advantage of.
We are looking into why this dependency was introduced and whether we can remove it.
I've opened https://github.com/bytecodealliance/javy/pull/670 and I've confirmed that it fixes the issues and restores the behavior of the previous version (which doesn't require installing Visual C++).
Please confirm that you have:
In which of these areas are you experiencing a problem?
Function
Expected behavior
This should run without any errors
Actual behavior
I am just installed Cart Transform Function setup and then run this and getting this error
── external error ────────────────────────────────────────────────────────────────────
Error coming from
npm exec -- javy-cli --version
Command failed with exit code 3221225477: npm exec -- javy-cli --version
────────────────────────────────────────────────────────────────────────────────
Verbose output
Reproduction steps
Operating System
Windows 11
Shopify CLI version (check your project's
package.json
if you're not sure)3.61.2
Shell
No response
Node version (run
node -v
if you're not sure)20.10.0
What language and version are you using in your application?
No response