I compiled the hello world program
import Html exposing (text) main = text "Hello, World!"
with elm 0.17 on Windows, without compilation errors:
elm make hello.elm --output index.html
When I open Chrome on index.html, I get a blank page. The Chrome console shows 2 errors in index.html:
Uncaught ReferenceError: _elm_lang$virtual_dom$VirtualDom$text is not defined Uncaught ReferenceError: Elm is not defined
If I run the el reactor in this file, I also get a white page and similar errors in the console.
Anyway, the path is missing ... Here is the elm-package.json file:
{ "version": "1.0.0", "summary": "helpful summary of your project, less than 80 characters", "repository": "https://github.com/user/project.git", "license": "BSD3", "source-directories": [ "." ], "exposed-modules": [], "dependencies": { "elm-lang/core": "4.0.0 <= v < 5.0.0", "elm-lang/html": "1.0.0 <= v < 2.0.0" }, "elm-version": "0.17.0 <= v < 0.18.0" }
What should I do?
source share