-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
NextJS 14 forced to use swc and cannot switch to babel anymore. #57608
Comments
fyi: i use pnpm, i also try with npm and yarn too, result was the same. |
Is |
no, that was the weird part, usually i see this |
Does it crash? Please post the whole error message |
yes, it does crash.
|
i want to use android/arm64 too |
use Next v13 for now, we cant use v14 yet. |
I can reproduce this in termux. |
We've reintroduced WASM fallback for SWC (and enabled it by default in web containers). |
@jridgewell fix confirmed. 🚀 🎉 |
Hoe to use that? |
@jujutsucode how to use what ? |
The wasm
Pada Jum, 10 Nov 2023 11.09, Muhammad Tsany Qudsi ***@***.***>
menulis:
… @jujutsucode <https://github.com/jujutsucode> how to use what ?
—
Reply to this email directly, view it on GitHub
<#57608 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BA6IEYQLQABKQQ24FCNPY4LYDWSGNAVCNFSM6AAAAAA6S6VVI6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBVGA2TMMRWGA>
.
You are receiving this because you were mentioned.Message ID: <vercel/next
.***@***.***>
|
@jujutsucode can you clarify your question ? This issue is about NextJS 14 can't be installed in Termux because of SWC issues. Is that your issue as well ? |
@jridgewell it still occuring in termux android, already have .babelrc with running dev server still trying to load swc binary. here's new log > test-2@0.1.0 dev /data/data/com.termux/files/home/Projects/NextJS/test-2
> next dev
▲ Next.js 14.0.2
- Local: http://localhost:12345
⚠ Disabling SWC Minifer will not be an option in the next major version. Please report any issues you may be experiencing to https://github.com/vercel/next.js/issues
⚠ Attempted to load @next/swc-android-arm64, but it was not installed
⨯ Failed to load SWC binary for android/arm64, see more info here: https://nextjs.org/docs/messages/failed-loading-swc |
Enable |
alright, will test it and send the result |
still crashing, now it even worse, no logs about the crash or error, just stopped immedietly. ~/.../NextJS/test-2 $ pnpm run dev
> test-2@0.1.0 dev /data/data/com.termux/files/home/Projects/NextJS/test-2 > next dev
▲ Next.js 14.0.2
- Local: http://localhost:3000
~/.../NextJS/test-2 $ |
I'm afraid I don't have an Android device to debug this. |
do nextjs have log level for debugging crash? more verbose message would be needed. could you use emulator and install termux so you could reproduce it? |
I think its because the package version is stopped at 13 |
This is the log at first |
@jridgewell @next/swc-wasm-nodejs is not in sync with nextjs anymore, so we can't even run Next.js 14 in WebContainer https://www.npmjs.com/package/@next/swc-wasm-nodejs
|
Not closed fakk!! Still error |
retracted.. it was a fluke 😢 sorry for the false confirmation |
When the problem is fixed, I want to program in termux on nextjs 14 🥺 |
Yes it's fixed in bb25edf I think we can close this ticket now |
it was not because it was fixed, i found a workaround to make this work. arm64 device would work like a charm, but it still doesn't work for any 32bit device or 32bit mode on 64bit (armv8l). but yeah, i'll close this issue then. |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Link to the code that reproduces this issue
https://github.com/BanDroid/next-swc-android-issue
To Reproduce
create-next-app
in termux..babelrc
/babel.config.js
and use presets "next/babel".Current vs. Expected behavior
SWC does support Android arm64, but somehow swc in nextjs cannot support it, i always switch to babel for workaround, but now i cant switch to use babel.
Verify canary release
Provide environment information
Operating System: Platform: android Arch: arm64 Version: #1 SMP PREEMPT Fri Jul 29 23:55:04 CST 2022 Binaries: Node: 18.16.1 npm: 9.5.1 Yarn: 1.22.19 pnpm: 8.8.0 Relevant Packages: next: 14.0.0 eslint-config-next: 14.0.0 react: 18.2.0 react-dom: 18.2.0 typescript: 5.2.2 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
CLI (create-next-app), Operating System (Windows, MacOS, Linux), Package manager (npm, pnpm, Yarn), SWC minifier (swcMinify: true), SWC transpilation
Additional context
fyi, i use termux to code. last version i tested fine was next 13.4
The text was updated successfully, but these errors were encountered: