-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Description
Link to the code that reproduces this issue
https://github.com/Clever-Shivanshu/file-upload-api
To Reproduce
- Start the Application by npm run dev
- Visit localhost:3000/api/fileUpload
- It crashes in Android termux after it
Current vs. Expected behavior
I am getting trying to create a api which takes files and save in public/uploads
But when go to
http://localhost:3000/api/fileUpload
It crashes and getting this
`$ npm run dev
[email protected] dev
next dev
▲ Next.js 14.0.2
- Local: http://localhost:3000
Disabled SWC as replacement for Babel because of custom Babel configuration ".babelrc" https://nextjs.org/docs/messages/swc-disabled
✓ Ready in 5.6s
⚠ Attempted to load @next/swc-android-arm64, but it was not installed
⚠ Found lockfile missing swc dependencies, patching...
⨯ Failed to patch lockfile, please try uninstalling and reinstalling next in this workspace
TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11522:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async fetchPkgInfo (/data/data/com.termux/files/home/file-upload-api/node_modules/next/dist/lib/patch-incorrect-lockfile.js:64:17)
at async Promise.all (index 0)
at async patchIncorrectLockfile (/data/data/com.termux/files/home/file-upload-api/node_modules/next/dist/lib/patch-incorrect-lockfile.js:160:26) {
cause: Error [ERR_SOCKET_CONNECTION_TIMEOUT]: Socket connection timeout
at new NodeError (node:internal/errors:399:5)
at internalConnectMultiple (node:net:1099:20)
at Timeout.internalConnectMultipleTimeout (node:net:1638:3)
at listOnTimeout (node:internal/timers:575:11)
at process.processTimers (node:internal/timers:514:7) {
code: 'ERR_SOCKET_CONNECTION_TIMEOUT'
}
}
⨯ Failed to load SWC binary for android/arm64, see more info here: https://nextjs.org/docs/messages/failed-loading-swc`
Verify canary release
- I verified that the issue exists in the latest Next.js canary release
Provide environment information
OS: Android 13
App: termuxWhich area(s) are affected? (Select all that apply)
SWC minifier (swcMinify: true)
Additional context
I tried to fix it but not working