Comments (5)
The reason was that COPY
also copied the local _build
folder which contained the esbuild executable which was of the type esbuild: Mach-O 64-bit executable arm64
and therefor didn't run in our linux docker image. Would've still been great to have a more descriptive error ;)
from esbuild.
It's difficult to get a descriptive error for this case.
If the wrong esbuild binary thought for a different OS architecture is present,
the call to esbuild will possibly just fail (or even work and then fail).
But I understand if one stumble across this problem it's difficult to find the cause.
The current esbuild implementation does not have any information for which OS architecture the present esbuild binary is for.
The only solution I could think of, we would need to save the esbuild binary with the OS architecture information attached.
→ _build/esbuild-linux-64
Then at runtime always check the target and call the binary with it.
@josevalim May I ask you for your opinion? Is it worth it to go this way?
from esbuild.
@cw789 I think saving it as esbuild-linux64 doesn't hurt and we already have the logic to compute the architecture anyway. Can you please send a PR? :)
from esbuild.
Oh I'm glad filing this was still useful :)
from esbuild.
Can you please send a PR? :)
Sure, I love to do so.
Oh I'm glad filing this was still useful :)
Of course it is. Thanks.
Give me some time and we both won't stumble again over this problem.
from esbuild.
Related Issues (20)
- esbuild location in /tmp/phx-esbuild causes permission issue on multiuser systems HOT 1
- watch multiple locations in multi-phoenix umbrella application HOT 2
- `mix esbuild` fails with `"/.cache/phx-esbuild": no such file or directory` HOT 2
- Package esbuild binaries in project HOT 2
- Support for esbuild plugins?
- docker alpine linux armv7 - esbuild is not available for architecture: armv7-alpine-linux-musleabihf HOT 1
- Verify integrity of downloaded esbuild package HOT 13
- Can you please add armv7a to supported archs HOT 3
- Can I pass `process.env.NODE_ENV` ? HOT 1
- On install, esbuild deletes line from app.js: import "../css/app.css" HOT 2
- Freeze when calling esbuild with default profile when it doesnt exist HOT 2
- Heads up: upcoming change to esbuild package names HOT 4
- operating behind a user auth proxy server HOT 16
- esbuild 0.16.0 changed registry locations HOT 2
- install fails with empty http_proxy env-var HOT 1
- Multiple watchers create multiple downloads and a conflict when installing HOT 3
- Support for resolving module ids that point to assets in Elixir packages HOT 2
- config > version HOT 1
- upgraded to 0.8 and now getting error HOT 1
- Cannot download esbuild after latest npm path changes HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esbuild.