Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS output not recognized when using --ouput FILE instead of --output=FILE #229

Open
rlefevre opened this issue Apr 30, 2020 · 1 comment

Comments

@rlefevre
Copy link

When running elm-live 4.0.2 with the following command:

elm-live -H src/Main.elm -- --output elm.js

The following error is returned:

----------------------
|| ERROR IN COMMAND ||
----------------------


Usage: <elm-main> [options] [--] [elm make options]

-- Needs JS Output When Hot Reloading ------

You have turned hot reloading on, but for hot reloading to work you need to load your Elm code through an external JS file. You can learn more about how to do this using the --output flag by reading the following section of the elm guide on JavaScript Interop: <https://guide.elm-lang.org/interop/>

The external javascript file output is not detected.

This works if the following syntax is used:

elm-live -H src/Main.elm -- --output=elm.js

with --output=FILE instead of --output FILE.

I would have expected both syntaxes to work.

Versions

  • elm-live: 4.0.2
  • elm: 0.19.1
  • OS: Ubuntu 18.04 LTS
@frou
Copy link

frou commented Oct 2, 2020

Indeed - It's a dupe of #189

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants