piscina
piscina copied to clipboard
When I try to send a message to the worker thread, an error occurs
It is obvious that the message encapsulated internally is different from the data I sent, and I don't think this should happen. I need to communicate between the main thread and the worker thread. You should check if the content sent or received is an internal method, but you did not do so, or if you have customized a postMessage method
worker.postMessage({data:{}})
TypeError [Error]: String.prototype.startsWith called on null or undefined
at startsWith (<anonymous>)
at pathToFileURL (node:internal/url:1474:20)
at getHandler (C:\Users\Administrator\.code\ccadmin\node_modules\piscina\dist\src\worker.js:62:64)
at async C:\Users\Administrator\.code\ccadmin\node_modules\piscina\dist\src\worker.js:96:13
Can you provide an Minimum Reproducible Example to reproduce your issue?
This issue has been marked as stale because it has been opened 30 days without activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.