lustre-labs / lustre

An Elm-inspired framework for building HTML templates, single page applications, and server-rendered components in Gleam!
https://hexdocs.pm/lustre
MIT License
727 stars 52 forks source link

Question: Run without Erlang? #130

Closed johannesvollmer closed 1 month ago

johannesvollmer commented 1 month ago

Hi! Thanks for this library, I just wanted to try it because it looks amazing.

However, when starting out, I ran into a problem:

> gleam run -m lustre/dev start
  Compiling argv
error: Program not found

The program `escript` was not found. Is it installed?
Documentation for installing Erlang can be viewed here:
https://gleam.run/getting-started/installing/

This looks like Erlang is required to run the dev server. Is this assumption true? I have not installed Erlang yet, but I have installed NodeJS. Gleam seems to runs fine up to this point. I don't know if it's an official goal of Gleam, but it would be nice to not require Erlang when running on NodeJS. What do you think?

Would it be a goal of lustre to make the dev server run on pure NodeJS? Would it even be possible?

johannesvollmer commented 1 month ago

Update: I have installed Erlang, and manually had to add it to PATH, but now it fails because it seems I also need to install rebar3 just to run the dev-server, not even sure how to do that...?

johannesvollmer commented 1 month ago

Closed, as this is the wrong repo, sorry. Opened in the correct repo: https://github.com/lustre-labs/dev-tools/issues/35