-
Notifications
You must be signed in to change notification settings - Fork 18
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
Elm is not defined.. #9
Comments
Hi Antonio, I've added a set of instructions to the README under the tutorials section that should help you to get running without going through the tutorials. Can you let me know if this helps please? Thanks. |
not exactly. 2016-03-30 16:37 GMT+01:00 Alan Gardner [email protected]:
|
Can you paste the log out put from |
[image: Imagem inline 1] 2016-03-30 16:51 GMT+01:00 Alan Gardner [email protected]:
|
Sorry Antonio, I'm not seeing that image. Just seeing |
Hmm, I wonder if this has something to do with running on Windows. I've not tried running the app there yet. I'll give that a try shortly and let you know. Thanks. |
Many thanks.. 2016-03-31 10:19 GMT+01:00 Alan Gardner [email protected]:
|
Hi Antonio, I've managed to replicate this on my Windows desktop and believe that it is down to this issue with elm-brunch (which I use for compiling the Elm files) madsflensted/elm-brunch#16. If you change the brunch_config file as follows then this should get you up an running.
Thanks for raising this. I'll add a note to the README until I have time to run the tutorial on Windows. |
If you do the following this should clear that error:
|
Hmm, I'm a bit stuck now I have to confess. It looks like it might be more than Elm that you are having issues with. What packages are installed in your |
I have elm\elm-stuff\packages 2016-03-31 13:13 GMT+01:00 Alan Gardner [email protected]:
|
Well that certainly explains why it can't find the package! :) Can you try running |
Oh, that's weird. What's in your web\elm\elm-package.json file? |
{ 2016-03-31 13:45 GMT+01:00 Alan Gardner [email protected]:
|
OK, now I'm stumped. Running
Only thing I can think of is that elm is installing the packages elsewhere. Do you have an elm-stuff folder anywhere else on the project (such as the project root directory perhaps)? |
One other thought occurs ... are you behind a proxy or firewall of some sort? I would have still expected an error but haven't tried running the elm package installer in those conditions. |
yes behind a proxy and firewall but never had problem with npm or others... 2016-03-31 13:54 GMT+01:00 Alan Gardner [email protected]:
|
You could certainly give it a shot. Might be worthwhile trying to start from scratch with http://www.cultivatehq.com/posts/phoenix-elm-1 and http://www.cultivatehq.com/posts/phoenix-elm-2. That would take you as far as a basic Phoenix/Elm setup. I'm currently going through and updating the posts with Windows-specific gotchas. |
Perhaps this might be related? elm-lang/elm-package#149 |
thats it. Now to the browser. this time no errors in web console nor on iex cmd line |
Try |
Did that. António 2016-03-31 15:26 GMT+01:00 Alan Gardner [email protected]:
|
Nothing is being injected in the html page at i tried module SeatSaver where import Html exposing (text) main = and the same empty result... 2016-03-31 16:19 GMT+01:00 António Ramos [email protected]:
|
I found the problem. Seems that the brunch config on windows should use / instead of \ or // . here is my working brunch config exports.config = {
here conventions: { // Phoenix paths configuration
}, // Configure your plugins modules: { npm: { 2016-03-31 16:34 GMT+01:00 António Ramos [email protected]:
|
\o/ excellent! Thanks again for bringing this to my attention. I've updated the posts to add some Windows pointers and hope to have them released soon. I'll add your note above about |
Hello i cloned your repo and i got an error
app.js [sm]:28 Uncaught ReferenceError: Elm is not defined
at this line..
, elmApp = Elm.embed(Elm.SeatSaver, elmDiv, initialState);
please help..
thank you
The text was updated successfully, but these errors were encountered: