Closed eeue56 closed 7 years ago
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!
Here is what to expect next, and if anyone wants to comment, keep these things in mind.
IMO it's better to auto-include Json.Decode
only when incoming ports are used, decoding JSON is not required in every case. i.e. outgoing ports are not failing with this configuration (port trigger : Bool -> Cmd msg
).
I didn't see this issue at first, but I wanted to highlight that you have the exact same problem when using flags inside your program for the same reasons (using Json.Decode
but not imported). More infos here: https://github.com/elm-lang/elm-make/issues/134
The upcoming code crawls dependencies from main
so these should get included. At the very least, the mechanism works different now, so we should test with 0.19 and get it fixed before it goes out.
Is this project still being maintained? ;-)
Problem
Solution
Basics.elm
without being too problematic