At7heb
I’m using phoenix 1.6.0 rc0. starting phx.server fails, with this message
$ mix phx.server
[info] Application esbuild exited: exited in: Esbuild.start(:normal, [])
** (EXIT) an exception was raised:
** (ErlangError) Erlang error: :eacces
erlang.erl:4412: :erlang.open_port({:spawn_executable, 'c:/Users/at7wa/NoneDrive/dev/elixr/read_sound
s/_build/esbuild'}, [:use_stdio, :exit_status, :binary, :hide, {:args, ["--version"]}])
OK, so the code is trying to get the version of esbuild. Running it from bash shell:
$ pwd; ./esbuild --version
/c/Users/at7wa/NoneDrive/dev/elixr/read_sounds/_build
bash: ./esbuild: Permission denied
That seems compatible with :eacces error… What is esbuild?
$ pwd; ls -l esbuild; file esbuild
/c/Users/at7wa/NoneDrive/dev/elixr/read_sounds/_build
-rwxr-xr-x 1 at7wa 197609 6979072 Sep 10 08:56 esbuild*
esbuild: PE32 executable (console) Intel 80386 (stripped to external PDB), for MS Windows
Do I have to configure Windows to run this executable? Do I need to install Rust or Windows development tools?
Erlang version 24, Elixir 1.12.3, phoenix 1.6.0 rc 0
Trending in Questions
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
Hi everyone,
I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding.
I sta...
New
Hello,
I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
Documentation
While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
I’m new to elixir and just tried to install the elixirLS extension for VScode(ium) and it is throwing some errors that I would like help ...
New
Other Trending Topics
Edit: 2026 May 15 - This post is archived.
Mob is alive!!
Main docs: mob v0.7.11 — Documentation
A bit of explanation for the slightly c...
New
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #ai
- #elixirconf-us
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #elixirconf-eu
- #metaprogramming
- #hex










Showing Posts 1 to 8- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
03juan
It’s the alternative to webpack for new Phoenix projects that doesn’t require npm and simplifies the asset pipeline.
What are the permissions of the
_build/directory? It may not have execute permissions somehow.This
vs this
At7heb
Permissions are similar.
Notable is that the file size of your esbuild is not the same as mine. What is the output from “file esbuild” on your system?
03juan
Oh I’m running in Ubuntu under wsl2 whereas I assume you’re running straight on Windows? The size difference will be how Rust compiles for either system.
At7heb
Yes, I’m running straight Windows 10, using the git bash shell.
03juan
Unfortunately I don’t have experience with that strategy so can’t help further. I was hoping my suggestion would be a quick win!
Could be related to this known git-for-windows issue? Errors when running "Git Bash" until it's run as administrator · Issue #1449 · git-for-windows/git · GitHub
At7heb
thank you for the suggestions.
I’m not so familiar with installing erlang and elixir in wsl2, as well as my preferred IDE–visual studio code. Is there a good guide to getting started?
03juan
I used
asdffrom within the Ubuntu wsl distro, as detailed in the Installing Elixir - The Elixir programming language (elixir-lang.org) docs.I also use VSCode, and that has very good integration with WSL2. Once in the Ubuntu terminal you run
code .in your application’s root directory and it will open VSCode in Windows connected to the subsystem.Not much more to it, although if you want to run
:observerfrom IEx there’s some X-forwarding setup you have to do to have the linux GUI displayed in WIndows.How are you currently running postgres/DB of choice? Mine is setup through Docker for Windows and that also interfaces well with docker-compose in Ubuntu.
At7heb
With hints from 03Juan, I found installation instructions for esbuild at
https://esbuild.github.io/getting-started/#download-a-build. I used:and did the required
tar xf esbuild-windows-64-0.12.25.tgz.That gave me an esbuild.exe that ran. I copied
package/esbuild.exeto_builds/esbuilddirectory (the.exesuffix is not used) in my liveview project. I was finally able to start the server for phoenix.Although this is a workaround, I’m going to mark this as a solution. (the real solution is to get phoenix 1.6.0 rc1 to install the correct esbuild.)