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

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

Open
LearningNerd opened this issue Mar 25, 2019 · 0 comments

Comments

@LearningNerd
Copy link

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.

@LearningNerd LearningNerd changed the title Examples not working; "Browser module does expose an embed variable" Examples not working; "Browser module does not expose an embed variable" Mar 25, 2019
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

1 participant