Environment
Node.js version: 22.13.1
pnpm version: 10.1.0
Wrangler version: 4.6.0
Reproduction
Reproduction repo: https://github.com/ensdomains/ens-manager-v4-demo
Deploy with this command:
$ pnpx wrangler --cwd dist/ pages deploy
Describe the bug
The build (pnpm build) works fine. The error occurs when deploying (pnpx wrangler --cwd dist/ pages deploy).
Additional context
I think the bug is related to this line:
|
ctor.prototype = Object.create(superCtor.prototype, { |
Logs
▲ [WARNING] Ignoring this import because "../../../Library/Caches/pnpm/dlx/4bddd97157caf42be0e77b2e5b2a5f3e788998a14c583d6a07440e59e7c9066f/195f667fb05-7433/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@cloudflare/unenv-preset/dist/runtime/node/process.mjs" was marked as having no side effects [ignored-bare-import]
_worker.js/index.js:1:134:
1 │ ...s/nitro/nitro.mjs";import"node:process";import"node:timers";impo...
╵ ~~~~~~~~~~~~~~
"sideEffects" is false in the enclosing "package.json" file:
../../../Library/Caches/pnpm/dlx/4bddd97157caf42be0e77b2e5b2a5f3e788998a14c583d6a07440e59e7c9066f/195f667fb05-7433/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@cloudflare/unenv-preset/package.json:23:2:
23 │ "sideEffects": false,
╵ ~~~~~~~~~~~~~
✨ Uploading Worker bundle
✨ Uploading _routes.json
🌎 Deploying...
✘ [ERROR] Deployment failed!
Failed to publish your Function. Got error: Uncaught TypeError: The
"superCtor.prototype" property must be of type object. Received undefined
at node:util:80:15 in inherits
at chunks/nitro/nitro.mjs:1:724307
Environment
Node.js version: 22.13.1
pnpm version: 10.1.0
Wrangler version: 4.6.0
Reproduction
Reproduction repo: https://github.com/ensdomains/ens-manager-v4-demo
Deploy with this command:
Describe the bug
The build (
pnpm build) works fine. The error occurs when deploying (pnpx wrangler --cwd dist/ pages deploy).Additional context
I think the bug is related to this line:
unenv/src/runtime/node/internal/util/inherits.ts
Line 6 in 78db6ac
Logs