Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🐛 Bug]: ReferenceError when using next/dynamic #941

Open
1 task done
nicholasfulton opened this issue Feb 20, 2025 · 1 comment
Open
1 task done

[🐛 Bug]: ReferenceError when using next/dynamic #941

nicholasfulton opened this issue Feb 20, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@nicholasfulton
Copy link

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?

  • Would you like to help fixing this bug?
@nicholasfulton nicholasfulton added the bug Something isn't working label Feb 20, 2025
@Kampita
Copy link

Kampita commented Feb 22, 2025

previously i has similar issue like this try to change vercel version for more info refer to this package.json to understood

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants