elm / elm-lang.org

Server and client code for the Elm website.
http://elm-lang.org/
BSD 3-Clause "New" or "Revised" License
1.99k stars 366 forks source link

elm-lang.org/0.19.0/ports is empty, but a compiler error references it #798

Open anttti opened 5 years ago

anttti commented 5 years ago

I had an error in my Elm code re: ports and received the following hint from the compiler:

Hint: Ports are not a traditional FFI, so if you have tons of annoying ports, definitely read https://elm-lang.org/0.19.0/ports to learn how they are meant to work. They require a different mindset!

Yet the page at https://elm-lang.org/0.19.0/ports seems to be empty.

ryan-senn commented 5 years ago

I had this compiler error redirect me to it as well: Hint:

Read https://elm-lang.org/0.19.0/ports for more advice. For example, do not end up with one port per JS function!

Bit confusing, especially for beginners.

aesteve commented 5 years ago

Faced this issue as well today. According to @joelq on slack, the correct page seems to be https://guide.elm-lang.org/interop/ports.html