deno: Importing https://esm.sh/react-dom@17.0.2 hangs Deno
With Deno v1.25.0, and this demo.mjs file:
import "https://esm.sh/react-dom@17.0.2";
console.log("here");
Run:
deno run demo.mjs
And the terminal output is:
This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills
This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills
here
But the process hangs forever and doesn’t exit. I can’t figure out why; it seems to be a Deno bug.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 32 (11 by maintainers)
Commits related to this issue
- Avoid Deno hanging. See https://github.com/denoland/deno/issues/15683 . — committed to jaydenseric/ruck by jaydenseric 2 years ago
One might argue that ops associated with “MessagePort” should be “unref” by default (ie. they don’t keep event loop alive if there’s no more work to be done).
@jaydenseric to be fair, I ran it as a TypeScript module, and that works. I used
.mjsand.jsextensions and the issue did occur, something weird going on there.