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

Add Elm Example #42

Closed
brooksbecton opened this issue Dec 13, 2018 · 1 comment
Closed

Add Elm Example #42

brooksbecton opened this issue Dec 13, 2018 · 1 comment

Comments

@brooksbecton
Copy link
Contributor

Hey!
I was trying to make an elm example since Elm just got added to the list of assets parcel can compile:
https://medium.com/@devongovett/parcel-v1-10-0-babel-7-flow-elm-and-more-c20736553573

I have it up here: https://github.com/brooksbecton/elm-todomvc
It works if you run the build scripts and then run elm reactor
But, if I use parcel to then host the index.html it can't seem to see the Elm global to init the app.

Uncaught ReferenceError: Elm is not defined
    at (index):16

Here is the line on 16

var app = Elm.Main.init({

Any ideas on this?
I've seen some plugins to get this to work, but I thought maybe you could do this without them now.

@brooksbecton
Copy link
Contributor Author

This seems to have resolved itself.

PR
#46

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