You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update: The issue is esbuild has a binary and supports Android, but it does not make a build for Intel based Android, so it both requires the binary code and can't provide it.
Describe the bug
vite build crashes on android with the following error:
npx vite build
failed to load config from /data/data/com.termux/files/home/my-app/vite.config.ts
error during build:
Error: Unsupported platform: android x64 LE
at pkgAndSubpathForCurrentPlatform (/data/data/com.termux/files/home/my-app/node_modules/esbuild/lib/main.js:1621:11)
at generateBinPath (/data/data/com.termux/files/home/my-app/node_modules/esbuild/lib/main.js:1633:28)
at esbuildCommandAndArgs (/data/data/com.termux/files/home/my-app/node_modules/esbuild/lib/main.js:1699:11)
at ensureServiceIsRunning (/data/data/com.termux/files/home/my-app/node_modules/esbuild/lib/main.js:1856:25)
at Object.build (/data/data/com.termux/files/home/my-app/node_modules/esbuild/lib/main.js:1749:26)
at bundleConfigFile (/data/data/com.termux/files/home/my-app/node_modules/vite/dist/node/chunks/dep-f5552faa.js:75118:34)
at loadConfigFromFile (/data/data/com.termux/files/home/my-app/node_modules/vite/dist/node/chunks/dep-f5552faa.js:75095:35)
at resolveConfig (/data/data/com.termux/files/home/my-app/node_modules/vite/dist/node/chunks/dep-f5552faa.js:74656:34)
at doBuild (/data/data/com.termux/files/home/my-app/node_modules/vite/dist/node/chunks/dep-f5552faa.js:37652:26)
at build (/data/data/com.termux/files/home/my-app/node_modules/vite/dist/node/chunks/dep-f5552faa.js:37640:22)
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
P.S. swc now compiles to WASM. Perhaps defaulting to esbuild-wasm would be ideal. I thought sass-loader was the last binary we'd have to deal with in node projects.
Update: The issue is esbuild has a binary and supports Android, but it does not make a build for Intel based Android, so it both requires the binary code and can't provide it.
Describe the bug
vite build
crashes on android with the following error:Reproduction
vite.new/vue-ts
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: