Setting @rescript/std allows me to force the Deno runtime to use the same version.
By default it imports from rescript, which resolves to a different version for the main app, v12, and rescript-edgedb, v11. ReScript is changing the compiled code in node_modules, which Deno picks up on, but Deno runs/bundles the code with the packages exact dependency versions. So while the code in node_modules/rescript-edgedb is compiled with ReScript v12 the runtime is looking for v11. So by using @rescript/std I can force everything that ReScript compiles to import the same version, since I have defined the version for @rescript/std in my deno.json file.
Now this would all break if rescript-edgedb was using an older version of @rescript/std for some reason. I’m also not sure what would happen if one of my ReScript dependencies depended on another ReScript dependency.