What version? (function-runner --version): 5.0.0
Problem
I get an error EOF while parsing a value at line 1 column 0 when trying to run function-runner. I am on Windows 11. I have tried a variety of things including using the Remix Template for the app and using the products_discounts template for the extension, and using JavaScript and TypeScript. I have also tried using both empty and populated json input via both stdin and an input file.
Error Message and Context
{
"name": "function.wasm",
"size": 2,
"memory_usage": 0,
"instructions": 100419,
"logs": "",
"output": {
"InvalidJsonOutput": {
"error": "EOF while parsing a value at line 1 column 0",
"stdout": ""
}
}
}
Steps to reproduce
- In terminal I run
shopify app init
- I accept the default app name by pressing
tab
- I select
Start by adding your first extension
- I
cd to app directory
- I run
shopify app generate extension
- I select
y to create as a new app
- I accept the default app name by pressing
tab
- I select
Cart transformer
- I accept the default name by pressing
tab
- I select
TypeScript
- I run
shopify app dev
- I select my dev store
- I click the preview url and click the
Install button
- I then
cd to the dist folder of the extension
- I run
echo '{}' | function-runner --function function.wasm --json
What version? (
function-runner --version): 5.0.0Problem
I get an error
EOF while parsing a value at line 1 column 0when trying to runfunction-runner. I am on Windows 11. I have tried a variety of things including using the Remix Template for the app and using theproducts_discountstemplate for the extension, and using JavaScript and TypeScript. I have also tried using both empty and populated json input via both stdin and an input file.Error Message and Context
Steps to reproduce
shopify app inittabStart by adding your first extensioncdto app directoryshopify app generate extensionyto create as a new apptabCart transformertabTypeScriptshopify app devInstallbuttoncdto thedistfolder of the extensionecho '{}' | function-runner --function function.wasm --json