second-state / wasmedge-quickjs

A high-performance, secure, extensible, and OCI-complaint JavaScript runtime for WasmEdge.
Apache License 2.0
477 stars 59 forks source link

README example does not work #110

Closed ShayanShiravani closed 1 year ago

ShayanShiravani commented 1 year ago

I followed the README instructions to execute the hello.js example code but got following errors: [2023-09-03 13:33:58.357] [error] instantiation failed: unknown import, Code: 0x62 [2023-09-03 13:33:58.357] [error] When linking module: "wasi_snapshot_preview1" , function name: "sock_setsockopt" [2023-09-03 13:33:58.357] [error] At AST node: import description [2023-09-03 13:33:58.357] [error] When linking module: "wasi_snapshot_preview1" , function name: "sock_setsockopt" [2023-09-03 13:33:58.357] [error] At AST node: import description [2023-09-03 13:33:58.357] [error] At AST node: import section [2023-09-03 13:33:58.357] [error] At AST node: module

juntao commented 1 year ago

Which version of WasmEdge are you using? Thanks.

ShayanShiravani commented 1 year ago

0.9.0

juntao commented 1 year ago

Can you update to the latest WasmEdge? The 0.9 is very old now. 😅

ShayanShiravani commented 1 year ago

I installed it using the instructions at https://wasmedge.org/docs/start/install but I don't know why it installed the 0.9. Anyway, I installed it again using the instructions at https://wasmedge.org/docs/start/getting-started/quick_start and it executed without any errors.