surrealdb / surrealdb.wasm

A WebAssembly engine for the SurrealDB JavaScript SDK
https://surrealdb.com
Apache License 2.0
112 stars 17 forks source link

Bug: The demo (index.html) throwing error "Uncaught UnsupportedVersion at versionCheck" #93

Closed limcheekin closed 1 month ago

limcheekin commented 2 months ago

Describe the bug

Unable to run the surrealdb.wasm in Chrome browser due to the error above.

Steps to reproduce

I clone the latest source from surrealdb.wasm repo and run the following commands:

pnpm i
make build
pnpm serve

Then, I open http://127.0.0.1:8000/ in the chrome browser, the demo (index.html) is loaded successfully. But when I tried running await surreal.connect("indxdb://test") in browser console, it is throwing the following error:

Uncaught UnsupportedVersion
    at versionCheck (http://127.0.0.1:8000/node_modules/surrealdb.js/dist/esm.bundled.js:1:34314)
    at Surreal.connect (http://127.0.0.1:8000/node_modules/surrealdb.js/dist/esm.bundled.js:1:42891)
    at async <anonymous>:1:1

Expected behaviour

It should connect successfully.

SurrealDB version

surrealdb.wasm v1.0.0-beta.13

Contact Details

limcheekin@vobject.com

Is there an existing issue for this?

Code of Conduct

limcheekin commented 1 month ago

Tested and it works in v1.0.0-beta.14.