background: I am following the tutorial at https://elmprogramming.com/elm-reactor.html in which it creates a elm.js file for the first webpage example. Its a very basic tutorial where elm.js is in the document root. I am running this tutorial on Windows7 and Sublime Text.
I’ve had 2 separate instances where behaviour seemed strange when using elm commands:
Running $ elm install elm/http - launches elm.js in Sublime Text instead of the expected result. Fixed by renaming elm2.js (I later renamed it make back to elm.js)
Running elm reactor, it also launches elm.js in Sublime Text instead of going to localhost:8000. Fixed by renaming file back to elm2.js again.
Is elm.js reserved for something? Its not really an issue, I just found it unusual.
You can remove the JS extension from this variable (this might be sometimes useful for nodejs though, I’m not sure) or use another name for the elm js file.