You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have cloned this React blog software [1] which is also part of a comprehensive YouTube tutorial about React [2].
After building it using the standard npm commands (to make sure it worked) I then went ahead and update the source code and config to be rendered server side. I used the SSR [3] instructions from the WasmEdge book.
Everything was successful right up until the final command to start the server i.e. wasmedge --dir .:. wasmedge_quickjs.wasm ./server-build/index.js
Here is the error which was returned from that command.
[2022-04-26 10:31:26.387] [error] instantiation failed: unknown import, Code: 0x62
[2022-04-26 10:31:26.387] [error] When linking module: "wasi_snapshot_preview1" , functionname:"sock_setsockopt"
[2022-04-26 10:31:26.387] [error] At AST node: import description
[2022-04-26 10:31:26.387] [error] When linking module: "wasi_snapshot_preview1" , functionname:"sock_setsockopt"
[2022-04-26 10:31:26.387] [error] At AST node: import description
[2022-04-26 10:31:26.387] [error] At AST node: import section
[2022-04-26 10:31:26.387] [error] At AST node: module
Thanks @L-jasmine
Yes, the server is actually running on Ubuntu Linux. @hydai asked about the version of WasmEdge; I checked the version on the server and it turns out it was running WasmEdge 0.9.0
I reinstalled using the one-line installer which upgraded WasmEdge to 0.9.1 and the error was resolved, which is great.
Thanks again
Tim
I have cloned this React blog software [1] which is also part of a comprehensive YouTube tutorial about React [2].
After building it using the standard npm commands (to make sure it worked) I then went ahead and update the source code and config to be rendered server side. I used the SSR [3] instructions from the WasmEdge book.
Everything was successful right up until the final command to start the server i.e.
wasmedge --dir .:. wasmedge_quickjs.wasm ./server-build/index.js
Here is the error which was returned from that command.
[1] https://github.com/iamshaunjp/Complete-React-Tutorial/tree/lesson-32/dojo-blog
[2] https://www.youtube.com/watch?v=j942wKiXFu8&list=PL4cUxeGkcC9gZD-Tvwfod2gaISzfRiP9d&index=1
[3] https://wasmedge.org/book/en/dev/js/ssr.html
The text was updated successfully, but these errors were encountered: