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: NextJS based project does not boot up anymore #1489

Open
1 task done
mirko314 opened this issue Jul 29, 2024 · 1 comment
Open
1 task done

Bug: NextJS based project does not boot up anymore #1489

mirko314 opened this issue Jul 29, 2024 · 1 comment

Comments

@mirko314
Copy link

mirko314 commented Jul 29, 2024

Describe the bug

The following error occurs when opening the stackblitz:

 yarn install && npx next dev
yarn install v1.22.19
[1/4] 🔍  Resolving packages...
success Already up-to-date.
✨  Done in 0.90s.
  ▲ Next.js 14.2.4
  - Local:        http://localhost:3000
  - Environments: .env

 ✓ Starting...
 ⚠ Attempted to load @next/swc-linux-x64-gnu, but an error occurred: Cannot load native addon because loading addons is disabled: /home/projects/imgly-cesdk-web-examples-sgnxde/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/imgly-cesdk-web-examples-sgnxde/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

Link to the blitz that caused the error

https://stackblitz.com/edit/imgly-cesdk-web-examples-sgnxde?file=src%2Fcomponents%2Fcase%2FCaseComponent.jsx&title=IMG.LY%20CE.SDK:%20Background%20Removal%20Plugin

Steps to reproduce

  1. Open the example stackblitz
  2. The default yarn install && npx next dev fails with the error specified above.

Expected behavior

I expect that the NextJS app boots up normally

Parity with Local

Screenshots

No response

Platform

Browser name  = Chrome
Full version  = 127.0.0.0
Major version = 127
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 86616173,
  "usedJSHeapSize": 80210953,
  "jsHeapSizeLimit": 4294705152
}
Hash = 41692973

Additional context

No response

@sulco
Copy link
Member

sulco commented Aug 6, 2024

Hey @mirko314, I've just tried the reproduction and it does error out on the SWC binary, but after bumping next from 14.2.4 to 14.2.5 it passes through. I know that the Next team was making some adjustments to how SWC is treated, so looks like this might have been fixed upstream. Can you confirm if this works for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants