mdgriffith / elm-style-animation

The style animation library for Elm!
http://package.elm-lang.org/packages/mdgriffith/elm-style-animation/latest
BSD 3-Clause "New" or "Revised" License
440 stars 40 forks source link

Examples not working; "Browser module does not expose an `embed` variable" #69

Open LearningNerd opened 5 years ago

LearningNerd commented 5 years ago

I have a feeling that I'm missing something, but I haven't been able to track down any info on this from searching online yet or looking at the Elm docs... None of the examples for this library work for me unless I change Browser.embed to Browser.element.

Example from running https://github.com/mdgriffith/elm-style-animation/blob/master/examples/Showcase.elm -- here's the compiler error:

I cannot find a `Browser.embed` variable:

283|     Browser.embed
         ^^^^^^^^^^^^^
The `Browser` module does not expose a `embed` variable. These names seem close
though:

    Browser.element
    Browser.sandbox
    Browser.document
    Html.embed

Hint: Read <https://elm-lang.org/0.19.0/imports> to see how `import`
declarations work in Elm.

But again, using Browser.element works fine. Is this due to an update to Elm or something else that I'm missing?

I'm happy to make a PR to fix this in the examples if it needs to be fixed :) Apologies if there's just something about Elm I'm missing here though; I'm still new to the language.