You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using next/dynamic on the edge runtime, bundle is malformed, producing error: ReferenceError: async__chunk_8335 is not defined
The same application works without errors when run using next dev/build/start, but produces this error message when using next-on-page's preview command or when deployed to Cloudflare Pages.
next-on-pages environment related information
System:
Platform: linux
Arch: x64
Version: #1 SMP Tue Nov 5 00:21:55 UTC 2024
CPU: (20) x64 13th Gen Intel(R) Core(TM) i7-13700H
Memory: 15 GB
Shell: /bin/bash
Package Manager Used: npm (9.2.0)
Relevant Packages:
@cloudflare/next-on-pages: 1.13.7
vercel: 41.1.4
next: 15.1.6
Description
When using next/dynamic on the edge runtime, bundle is malformed, producing error:
ReferenceError: async__chunk_8335 is not defined
The same application works without errors when run using next dev/build/start, but produces this error message when using next-on-page's preview command or when deployed to Cloudflare Pages.
Reproduction
Steps I took from a default template are listed in the README:
https://github.com/nicholasfulton/next-on-pages-bug
Pages Deployment Method
Pages CI (GitHub/GitLab integration)
Pages Deployment ID
37c376ec-a171-4b4b-8544-dc7715582e2e
Additional Information
No response
Would you like to help?
The text was updated successfully, but these errors were encountered: