Hi, I’m porting some code to 0.19 and I stumbled on a problem I can’t figure out:
Here is my main, which was an Html.program:
main : Program () Model Msg
main =
Browser.element
{
init = init,
view = view,
update = update,
subscriptions = \_ -> Sub.none
}
and I call it like this:
import Elm from '../SignUp'
document.addEventListener('DOMContentLoaded', () => {
const target = document.getElementById('signin-form');
var SignUp = Elm.Main.init({node: target, flags: {}});
});
This generates a very cryptic (IMHO) error that I’m not quite able to understand:
17:48:02 webpack.1 | ERROR in ./app/javascript/SignUp.elm
17:48:02 webpack.1 | Module build failed: Error: Compiler process exited with error Compilation failed
Success! Compiled 1 module.
17:48:02 webpack.1 | elm: Map.!: given key is not an element in the map
17:48:02 webpack.1 | CallStack (from HasCallStack):
Can anybody figure out what’s happening?
TIA,
ngw