Questions tagged [elm-reactor]

Use with questions relating to elm reactor, the development server included with [elm]

elm reactor is the development server included with .

It is initiated with the command elm reactor and will then start a web server at http://localhost:8000/. When accessed with a web browser you can navigate to any Elm file in your project to see what it looks like. elm reactor will rebuild your code on reload, and display any compilation errors in the browser.

Related tags

7 questions
7
votes
3 answers

Using elm-reactor with Elm embedded in HTML?

So I'm trying out Elm and WebRTC together. However for WebRTC I need some interop to javascript. So I created an index.html with the needed script includes, for both WebRTC and main.js. However, I am using elm-reactor. Which is super nice. But there…
The Oddler
  • 6,314
  • 7
  • 51
  • 94
4
votes
1 answer

Using custom HTML with elm reactor, or another dev server, in 0.19

As this answer shows it's possible in Elm 0.18 to run elm reactor with a custom HTML file if this snippet is included in the HTML file: In 0.19, however, it…
glennsl
  • 28,186
  • 12
  • 57
  • 75
2
votes
1 answer

Navigation with elm-reactor

I have an elm 0.18 app that uses the Navigation module. I navigate within it using links that look like [ a [ href "/#/page" ] [ text "Page" ], and do redirects with Navigation.newUrl myNewUrl. When I fire up elm-reactor, though, everything is…
Mark Karavan
  • 2,654
  • 1
  • 18
  • 38
0
votes
1 answer

Running elm reactor through a reverse proxy: How can I add an url prefix to links to _elm?

The html file served by elm reactor contains links to _elm/styles.css and _elm/elm.js I am now trying to run elm reactor via a reverse proxy which routes http://myhost/myprefix to http://localhost:8000. However this would require that the links…
Thomas Sonntag
  • 135
  • 2
  • 5
0
votes
1 answer

How to use elm reactor to access files via http request?

elm 0.19 $ mkdir myprj; cd myprj; elm init; elm install elm/http then create src/test.elm and src/test.txt: $ tree . ├── elm.json └── src ├── test.elm └── test.txt $ elm reactor then navigate to: http://localhost:8000/src/test.elm so…
sof
  • 9,113
  • 16
  • 57
  • 83
0
votes
1 answer

How to set source-directories when running elm-reactor

How do I specify areas for looking up Module names in elm-reactor, current it says I cannot find module 'MyModule'.
user2167582
  • 5,986
  • 13
  • 64
  • 121
-1
votes
2 answers

Elm 'Hello World' program not running when using elm-reactor

I just started using Elm. When I ran my hello world example(link to screenshot of code used given below) using elm-reactor, there is blank page on browser. There is also an error message on console describing it as a reference error (link to the…
Transhap Higsn
  • 165
  • 4
  • 12