Skip to content

fix for setImmediate/clearImmediate#1057

Merged
vicb merged 1 commit intomainfrom
vicb/setimmediate
Jan 6, 2026
Merged

fix for setImmediate/clearImmediate#1057
vicb merged 1 commit intomainfrom
vicb/setimmediate

Conversation

@vicb
Copy link
Contributor

@vicb vicb commented Dec 28, 2025

The global version of setImmediate/clearImmediate do not need to be injected in the global scope of the bundle - it causes troubles with Next 16.1.

Fixes for setInterval and setTimeout will be available via the enable_nodejs_global_timers flag shortly.

fixes #1049

@changeset-bot
Copy link

changeset-bot bot commented Dec 28, 2025

🦋 Changeset detected

Latest commit: 28d1172

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@opennextjs/cloudflare Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 28, 2025

Open in StackBlitz

npm i https://pkg.pr.new/@opennextjs/cloudflare@1057

commit: 28d1172

@vicb vicb mentioned this pull request Dec 28, 2025
7 tasks
@vicb vicb force-pushed the vicb/setimmediate branch from 5e08c72 to 28d1172 Compare January 6, 2026 15:43
@vicb
Copy link
Contributor Author

vicb commented Jan 6, 2026

Thanks for the review James.
I have removed the bump to Next 16.1 from this PR as it breaks the tests.
I'll look at this in a follow up PR.

@vicb vicb merged commit 0230cbe into main Jan 6, 2026
7 checks passed
@vicb vicb deleted the vicb/setimmediate branch January 6, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Next.js 16.1.0 crashes on Cloudflare Workers (Error 1101): Cannot assign to read only property 'setImmediate' of [object Module]

2 participants