If you have an incoming port with the unit type:
port myIncomingPort : (() -> msg) -> Sub msg
this causes a crash when trying to embed the Elm application in Javascript:
Main.js:9940 Uncaught ReferenceError: _Tuple0 is not defined(anonymous function) @ Main.js:9940(anonymous function) @ Main.js:11929
app.ts:33 ReferenceError: Elm is not defined(…)
https://github.com/elm-lang/elm-compiler/pull/1361
ping @lukewestby
I haven't reopened that PR because I haven't had time to get an elm dev env set up to test the fix. If someone wants to take that code and test it and submit a new pr that would be excellent
Until then, if anyone is experiencing this bug you can work around it by sending an empty record {} over the port instead
Most helpful comment
Until then, if anyone is experiencing this bug you can work around it by sending an empty record
{}over the port instead