What version of Wrangler are you using?
2.0.25
What operating system are you using?
Mac
Describe the Bug
Attempting to deploy the following code causes the error:
"The uploaded script has no registered event handlers. [code: 10068]"
"use strict";
addEventListener("fetch", () => { });
typeof module;
Commenting out the last line causes the deployment to function as expected:
"use strict";
addEventListener("fetch", () => { });
//typeof module;
EDIT: Seems the same thing is happening if I change the variable after typeof to exports. Is this thing specifically trying to prevent me from detecting Node.js vs Cloudflare?