Closed willfish closed 8 years ago
The problem is in your code. Note that http://package.elm-lang.org/packages/evancz/start-app/2.0.2/StartApp#start and http://package.elm-lang.org/packages/evancz/start-app/2.0.2/StartApp-Simple#start are different functions with different types. You have imported StartApp
, but are trying to use StartApp.Simple.start
. Change the line
import StartApp
in your code to
import StartApp.Simple as StartApp
(just like in https://github.com/evancz/start-app/blob/master/README.md)
That was really helpful! Thanks :)
I've been following the Elm tutorials through the Pragmatic Studio and am adding the following to main:
This seems pretty straight forward as per https://github.com/evancz/start-app.
I am getting the following error and can't seem to find the source of the problem:
This is my Gruntfile:
This is my elm package json:
I installed elm-platform using brew cask at first: https://github.com/caskroom/homebrew-cask/blob/master/Casks/elm-platform.rb. Completely uninstalled and then reinstalled using the elm websites link: http://elm-lang.org/install.
Found that someone else had similar issues (though compiling their own things https://github.com/elm-lang/elm-reactor/issues/162).
Not sure whether I'm doing something wrong :(