Open SOG-web opened 2 days ago
version: "@surrealdb/ql-wasm": "0.2.0-beta.9", or "@surrealdb/ql-wasm": "0.2.0-beta.1",
this is what causing error,
import { SurrealQL, Value } from "@surrealdb/ql-wasm";
const parsed = decodeCbor(Value.from_string(paramString).to_cbor().buffer);
export function validateThing(thing: string): string | undefined {
try {
SurrealQL.validate_thing(thing);
return undefined;
} catch (err: any) {
return err;
}
}
Describe the bug
Am using Node 22.5.1
✘ [ERROR] Top-level await is not available in the configured target environment ("chrome130.0", "edge130.0", "firefox115.0", "ios17.0", "safari17.0" + 7 overrides)
✘ [ERROR] Top-level await is not available in the configured target environment ("chrome130.0", "edge130.0", "firefox115.0", "ios17.0", "safari17.0" + 7 overrides)
✘ [ERROR] Top-level await is not available in the configured target environment ("chrome130.0", "edge130.0", "firefox115.0", "ios17.0", "safari17.0" + 7 overrides)
✘ [ERROR] Top-level await is not available in the configured target environment ("chrome130.0", "edge130.0", "firefox115.0", "ios17.0", "safari17.0" + 7 overrides)
✘ [ERROR] Top-level await is not available in the configured target environment ("chrome130.0", "edge130.0", "firefox115.0", "ios17.0", "safari17.0" + 7 overrides)
✘ [ERROR] Top-level await is not available in the configured target environment ("chrome130.0", "edge130.0", "firefox115.0", "ios17.0", "safari17.0" + 7 overrides)
Steps to reproduce
Just install fresh angular app the try use this package
Expected behaviour
To validate the surrealql
SurrealDB version
latest
Contact Details
raheemolaleknusman84@gmail.com
Is there an existing issue for this?
Code of Conduct