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:
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
[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

