error: Uncaught (in worker "[worker eval]") (in promise) ReferenceError: require is not defined
const self = require("worker_threads");
^
at data:text/javascript,const self = require("worker_threads");:1:14
info: Deno supports CommonJS modules in .cjs files, or when the closest
package.json has a "type": "commonjs" option.
hint: Rewrite this module to ESM,
or change the file extension to .cjs,
or add package.json next to the file with "type": "commonjs" option,
or pass --unstable-detect-cjs flag to detect CommonJS when loading.
docs: https://docs.deno.com/go/commonjs
error: Uncaught (in worker "[worker eval]") (in promise) ReferenceError: require is not defined
const self = require("worker_threads");
^
at data:text/javascript,const self = require("worker_threads");:1:14
info: Deno supports CommonJS modules in .cjs files, or when the closest
package.json has a "type": "commonjs" option.
hint: Rewrite this module to ESM,
or change the file extension to .cjs,
or add package.json next to the file with "type": "commonjs" option,
or pass --unstable-detect-cjs flag to detect CommonJS when loading.
docs: https://docs.deno.com/go/commonjs