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]: XMLHttpRequest is not defined #915

Open
1 task
michalvadak opened this issue Dec 6, 2024 · 0 comments
Open
1 task

[🐛 Bug]: XMLHttpRequest is not defined #915

michalvadak opened this issue Dec 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@michalvadak
Copy link

next-on-pages environment related information

System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 23.6.0: Thu Sep 12 23:35:10 PDT 2024; root:xnu-10063.141.1.701.1~1/RELEASE_ARM64_T6030
CPU: (12) arm64 Apple M3 Pro
Memory: 18 GB
Shell: /bin/zsh
Package Manager Used: npm (10.2.3)

Relevant Packages:
@cloudflare/next-on-pages: 1.13.2
vercel: 39.1.1
next: ^14.2.20
@auth0/nextjs-auth0: ^3.5.0

Description

Since @cloudflare/next-on-pages: 1.13.2 I'm getting [Error]: Discovery requests failing for https://<removed>.com, XMLHttpRequest is not defined while running the app with npx wrangler pages dev .vercel/output/static --compatibility-flag=nodejs_compat after building with npx @cloudflare/next-on-pages

@cloudflare/next-on-pages: 1.13.1 works fine

Reproduction

  1. Setup NextJS project with @auth0/nextjs-auth0 and @cloudflare/next-on-pages on version 1.13.2
  2. Run npx @cloudflare/next-on-pages
  3. Run npx wrangler pages dev .vercel/output/static --compatibility-flag=nodejs_compat

Pages Deployment Method

Direct Upload (wrangler pages publish or the @cloudflare/pages-action GitHub Action)

Pages Deployment ID

No response

Additional Information

No response

Would you like to help?

  • Would you like to help fixing this bug?
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

1 participant