© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
NextJS gives TypeError but only on cloudflare pages - Cloudflare Developers
CD
Cloudflare Developers
•
16mo ago
•
2 replies
KRILLE
NextJS gives TypeError but only on cloudflare pages
I get
"TypeError
: Illegal invocation
: function called with incorrect this reference
. See
https://developers.cloudflare.com/workers/observability/errors/#illegal-invocation-errors
for details
.
" but only when deployed
. I do not get any errors on my localhost
.
Cloudflare Docs
Errors and exceptions · Cloudflare Workers docs
Review Workers errors and exceptions
.
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
87,353
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Cloudflare Pages: NextJS&VueJS Hybrid deployment failed
CD
Cloudflare Developers / pages-help
3y ago
cloudflare pages
CD
Cloudflare Developers / pages-help
3y ago