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

Suggestion: Example Repo #4

Open
janwirth opened this issue May 24, 2018 · 10 comments
Open

Suggestion: Example Repo #4

janwirth opened this issue May 24, 2018 · 10 comments

Comments

@janwirth
Copy link

From the readme alone I find it hard to get a program that compiles.

Can you provide an example repo?

@paulstatezny
Copy link
Owner

Hi @FranzSkuffka, thanks for dropping a line.

I'll try to find some time in the next week or two to add an examples directory with at least one solid example.

Do you have any specific questions? Or suggestions for improving the readme?

@paulstatezny
Copy link
Owner

Feel free to email me in the meantime, (see my GitHub profile,) I'd be glad to work through some code with you.

@janwirth
Copy link
Author

Hey Paul - thank you for the prompt reply. I think I had issues importing the module. THe import statements were missing completely from the elm code example.

@janwirth
Copy link
Author

I just came across the API reference and I'll try to go from there. I did not see that. Sorry.

@janwirth
Copy link
Author

FYI Comments are not allowed in JSON.

@janwirth
Copy link
Author

ERROR in ./src/elm/Main.elm
Module build failed: Error: Compiler process exited with error Compilation failed
I cannot find module 'Ports.LocalStorage'.

Module 'Main' is trying to import it.
    "source-directories": [
        "src/elm",
        "../../node_modules/elm-local-storage-ports/lib/elm",
        "./"
    ],

@janwirth
Copy link
Author

Okey, I got it working. The problem was with elm not resolving the src dir for some reason. However I saw that this lib does not support listening to the onstorage event which I need.

@paulstatezny
Copy link
Owner

@FranzSkuffka Thanks for all the feedback. Was there something inaccurate/misleading in the docs regarding the source directory? Let me know so I can fix. 🙂

@paulstatezny
Copy link
Owner

paulstatezny commented May 25, 2018

So I'm grouping this and #3 as identical feature requests. Let me see if I can whip something up.

(Edit: Added this feature, see #3)

@paulstatezny
Copy link
Owner

Here's something to look at @FranzSkuffka : https://github.com/paulstatezny/example-elm-local-storage-ports-app

I'll plan to add an examples folder in this repo in the future though.

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

2 participants