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] The latest Next.js version fails to start #1419

Open
1 task done
igordanchenko opened this issue Apr 22, 2024 · 0 comments
Open
1 task done

[Bug] The latest Next.js version fails to start #1419

igordanchenko opened this issue Apr 22, 2024 · 0 comments

Comments

@igordanchenko
Copy link

Describe the bug

Starting with Next.js version 14.2.1, Next.js process fails to start due to the following error:

✓ Starting...
⚠ Attempted to load @next/swc-linux-x64-gnu, but an error occurred: Cannot load native addon because loading addons is disabled: /home/projects/stackblitz-starters-gtp33x/node_modules/@next/swc-linux-x64-gnu/next-swc.linux-x64-gnu.node
⚠ Attempted to load @next/swc-linux-x64-musl, but an error occurred: Cannot load native addon because loading addons is disabled: /home/projects/stackblitz-starters-gtp33x/node_modules/@next/swc-linux-x64-musl/next-swc.linux-x64-musl.node
⨯ Failed to load SWC binary for linux/x64, see more info here: https://nextjs.org/docs/messages/failed-loading-swc

This is happening only with the latest Next.js versions (14.2.1 and 14.2.2 as of the time of this writing). Downgrading to v14.2.0 or earlier resolves this error.

Link to the blitz that caused the error

https://stackblitz.com/edit/stackblitz-starters-gtp33x?file=package.json

Steps to reproduce

  1. Create new Next.js project using StackBlitz Next.js starter template
  2. Open package.json
  3. Bump next and eslint-config-next versions to 14.2.1 or 14.2.2
  4. Restart the server in the console (npm install && npx next dev)
  5. Next.js server fails to start

Expected behavior

It would be great to be able to use the latest Next.js versions moving forward.

Parity with Local

Screenshots

Screenshot 2024-04-22 at 4 15 50 PM

Platform

  • OS: macOS Sonoma 14.4.1
  • Browser: Chrome
  • Version: 124.0.6367.62 (Official Build) (x86_64)

Additional context

No response

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

No branches or pull requests

1 participant