Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EOF while parsing a value at line 1 column 0 #270

Closed
matthewwren opened this issue Apr 27, 2024 · 3 comments · Fixed by Shopify/cli#3979
Closed

EOF while parsing a value at line 1 column 0 #270

matthewwren opened this issue Apr 27, 2024 · 3 comments · Fixed by Shopify/cli#3979
Assignees

Comments

@matthewwren
Copy link

matthewwren commented Apr 27, 2024

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
@meditto
Copy link

meditto commented May 14, 2024

I have the same issue

@meditto
Copy link

meditto commented May 14, 2024

I have the same issue

we have to specify the name of the export we want to invoke, I fixed my issue by adding this -e run

@DuncanUszkay1
Copy link
Contributor

DuncanUszkay1 commented Jun 7, 2024

Should be fixed on CLI's nightly! Please re-open if you run into further issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants