Sahil Kamble
Sahil Kamble2d ago

Deployment Issue with Next.js (15.2.4) on Deno Deploy – dispatcher.getOwner is not a function

I'm encountering an issue when deploying my Next.js application (v15.2.4) on Deno Deploy. While the build and deployment processes complete successfully, accessing the deployed endpoint results in an Internal Server Error. The logs show the following repeated error:
[TypeError: dispatcher.getOwner is not a function] TypeError: Cannot read properties of undefined (reading 'clientModules') at eventLoopTick (ext:core/01_core.js:178:7)
Important Notes: This error does not occur when running the project locally using npm run build && npm start. I have also tested deploying the same project on Render, where it works without issues. The problem only occurs after deployment when trying to access the application. Project Dependencies: Next.js: 15.2.4 React: 19.0.0 Tailwind CSS: ^4.0.17 PostCSS: ^8.4.9
No description
1 Reply
marvinh.
marvinh.2d ago
From doing a google search it seems like this can happen when NODE_ENV isn't set properly, see https://github.com/remix-run/react-router/issues/12138 The error message makes it sound like the wrong variant of React is loaded

Did you find this page helpful?