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
/usr/local/lib/opa/stdlib/opabsl.opp/opabslNodeJsPackage.js:924
throw new (global.Error)("Your toplevel contains value which can't be synchron
^
Error: Your toplevel contains value which can't be synchronously computed
at global.BslCps_topwait (/usr/local/lib/opa/stdlib/opabsl.opp/opabslNodeJsPackage.js:924:7)
at /home/test/test2.js:116:40
at Object.<anonymous> (/home/test/test2.js:116:203)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:901:3
Fair enough. You probably have good reasons to make this computation asynchronous. But then I guess it should be reported as an error at compile time.
Alternatively, Scheduler.push could be automatically inserted wherever needed.
This code
crashes:
whereas
works just fine!
Can't the database be used without a server?
The text was updated successfully, but these errors were encountered: