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] : OpenNext build fails due to unresolved caniuse-lite package labels #216

Open
mdansarijaved opened this issue Dec 30, 2024 · 1 comment
Labels
bug Something isn't working triage

Comments

@mdansarijaved
Copy link

Describe the bug

OpenNext build fails during deployment of a plain Next.js application due to an unresolved caniuse-lite package dependency.

Steps to reproduce

  1. Create a new Next.js application
  2. Configure for OpenNext deployment
  3. Attempt to build/deploy

Expected behavior

Build should complete successfully and deploy the Next.js application. Next build was successfull but opennext build was failing due to unresolved package caniuse-lite.
image

@opennextjs/cloudflare version

0.3.3

Wrangler version

3.99.0

next info output

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.1.0: Thu Oct 10 21:02:45 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T8112
  Available memory (MB): 8192
  Available CPU cores: 8
Binaries:
  Node: 22.11.0
  npm: 10.9.0
  Yarn: N/A
  pnpm: 9.13.2
Relevant Packages:
  next: 15.0.4 // There is a newer version (15.1.3) available, upgrade recommended! 
  eslint-config-next: 15.0.4
  react: 19.0.0
  react-dom: 19.0.0
  typescript: 5.7.2
Next.js Config:
  output: N/A

Additional context

No response

@mdansarijaved mdansarijaved added bug Something isn't working triage labels Dec 30, 2024
@mdansarijaved
Copy link
Author

an interim solution as suggested by one of the discord member is to install caniuse-lite as devDependencies

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

No branches or pull requests

1 participant