Skip to content
This repository was archived by the owner on May 30, 2025. It is now read-only.

Replication of Deno process hang when `Uncaught (in worker "[worker eval]") (in promise) ReferenceError: require is not defined` error during runtime.

License

Notifications You must be signed in to change notification settings

kotkoroid/repl-deno-cloudflare-vite-commonjs-process-hang

Repository files navigation

repl-deno-cloudflare-vite-commonjs-process-hang

Replication of Deno process hang when Uncaught (in worker "[worker eval]") (in promise) ReferenceError: require is not defined error during runtime.

Steps to Reproduce

  1. Install dependencies with deno install --allow-scripts
  2. Run the application with deno task dev

Expected Behavior

Execution fails at Uncaught (in worker "[worker eval]") (in promise) ReferenceError: require is not defined error and the process stops.

Actual Behavior

The expected error is thrown, but the process doesn't stop itself, requiring an intervention to kill the process explicitly.

Environment

deno -v: deno 2.2.6

uname -a: Darwin MacBook-Air.local 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan 2 20:23:36 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T8112 arm64

License

This project is published under the BSD-3-Clause license. For more information, refer to the LICENSE file.

About

Replication of Deno process hang when `Uncaught (in worker "[worker eval]") (in promise) ReferenceError: require is not defined` error during runtime.

Topics

Resources

License

Stars

Watchers

Forks