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

Bug: Unable to run the Development Server (index.html) of the v1.0.0-beta.9 #77

Open
2 tasks done
limcheekin opened this issue May 11, 2024 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@limcheekin
Copy link

Describe the bug

After the development server started, the browser console reported the following error: Uncaught ReferenceError: surrealdbWasmEngines is not defined.

Initial response from Micha on May 6:

I think that that demo is actually broken at the moment. I used to include the minified version of the js and wasm library, but I realized that that caused for example the RecordID class to be defined in two different spots, which would then in turn break CBOR serialization and deserialization. A best workaround is probably to have a single JS module which imports both libraries, then bundles it all and which gets included by the html file :)

Steps to reproduce

I tried make serve and then access localhost:8000 in the browser, the ./dist/embedded/web.js not found? Then I change the code of index.html file to use ./dist/embedded/index.js, and re-run the make serve.

Expected behaviour

The Development Server should run without issue.

SurrealDB version

1.0.0-beta.9

Contact Details

No response

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@limcheekin limcheekin added the bug Something isn't working label May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant