Yassine
Yassine

Reputation: 5

Cannot install elm-lang/html 1.0.0

I'm new in ELM, and i want to execute this code :

import Html exposing (..)

main = 
    text "hola yassine"

using elm platfrom 0.16.

Now, when i call http://localhost:8000/test.elm i have this error :

I cannot find module 'Html'.

Module 'Main' is trying to import it.

Potential problems could be:
  * Misspelled the module name
  * Need to add a source directory or new dependency to elm-package

and when i execute the elm package install elm-lang/html 1.0.0to import it, i have this problem that depend on path : error

Someone can help me please ? thanks a lot.

Upvotes: 0

Views: 94

Answers (1)

Ryan Plant
Ryan Plant

Reputation: 1047

You say you're using Elm 0.16. elm-lang/html was written from scratch for Elm 0.17, which significantly changed basic language features (abolishing signals most notably). You could try using evancz/elm-html 4.0.2 (the last version to support Elm 0.16) or you could upgrade to Elm 0.18 (as of November 2016, the latest version).

Upvotes: 1

Related Questions