-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: DOMException error when running parcel #23522
Comments
I can't reproduce it... When I run parcel like that I get resolution errors:
How do you get to that error? |
Whoops, you're right. It looks like I had |
I tracked down the problem to the fact that That said, even if we fix this, running this program still completely freezes the terminal and you need to manually kill the process from a separate terminal. |
@bartlomieju Looks like I closed #23281 prematurely |
Most common argument to `env` option for `worker_threads.Worker` will be `process.env`. In Deno `process.env` is a `Proxy` which can't be cloned using structured clone algorithm. So to be safe, I'm creating a copy of actual object before it's sent to the worker thread. Ref #23522
Closing this one, let's continue in #23281 |
Steps to reproduce
index.html
file with these contents:npm init -y && npm i parcel
DENO_FUTURE=1 deno run -A npm:parcel index.html
Error
DOMException: #<Object> could not be cloned. at new DOMException (ext:deno_web/01_dom_exception.js:116:20) at ext:deno_web/13_message_port.js:389:11 at Object.serialize (ext:core/01_core.js:672:14) at serializeJsMessageData (ext:deno_web/13_message_port.js:388:31) at new NodeWorker (node:worker_threads:129:38) at ThreadsWorker.start (file:///Users/marvinh/dev/test/deno-parcel/node_modules/.pnpm/@parcel+workers@2.12.0_@parcel+core@2.12.0/node_modules/@parcel/workers/lib/threads/ThreadsWorker.js:38:19) at Worker.fork (file:///Users/marvinh/dev/test/deno-parcel/node_modules/.pnpm/@parcel+workers@2.12.0_@parcel+core@2.12.0/node_modules/@parcel/workers/lib/Worker.js:90:23) at WorkerFarm.startChild (file:///Users/marvinh/dev/test/deno-parcel/node_modules/.pnpm/@parcel+workers@2.12.0_@parcel+core@2.12.0/node_modules/@parcel/workers/lib/WorkerFarm.js:229:12) at WorkerFarm.startMaxWorkers (file:///Users/marvinh/dev/test/deno-parcel/node_modules/.pnpm/@parcel+workers@2.12.0_@parcel+core@2.12.0/node_modules/@parcel/workers/lib/WorkerFarm.js:389:14) at new WorkerFarm (file:///Users/marvinh/dev/test/deno-parcel/node_modules/.pnpm/@parcel+workers@2.12.0_@parcel+core@2.12.0/node_modules/@parcel/workers/lib/WorkerFarm.js:136:10)
Related #23281
Version: Deno 1.42.4 (git 5294885 2024-04-24)
The text was updated successfully, but these errors were encountered: