I haven’t updated a function in several months and today it’s experienced severe downtime.
Error:3:31 cannot read property 'fromStdin' of undefined
at run_default (function.mjs:3:31)
at run2 (function.mjs:420:10)
at <anonymous> (eval_script:1:37)
Cart transform, 2024-01
Started Nov5th with no updates to the code.
I also can’t find all of the available versions, the docs on Shopify reference 2023-10 but this can’t possibly be in-use now.
Feel free to send me the function ID so I can take a look at what’s happening.
Can you run shopify --version to verify it’s using the right CLI version when you’re deploying the change? Are you deploying from your personal computer, or deploying from a CI/CD environment?
I would also suggest testing using the Function runner by doing shopify app function run in the extensions directory. That will use the WebAssembly file directly after it’s built to verify that it’s working properly.
Can you verify the version of the @shopify/shopify_function npm package, not the node version. It should be in your package.lock or yarn.lock depending on package manager you’re using. The latest version is 1.0.2