Closed sb8244 closed 4 years ago
I could see the error message moving this check to be right before this line:
I'm not sure if this is the proper fix though since this issue might happen in other places that call any other DOM module function. Should we add this check at compile time using something such as @before_compile
, after_compile
or something that ensure we don't need to remember to put this check when using DOM functions?
cc @josevalim
I think moving the check up is good enough. It is a single entry point, we are just doing it too late. Can you please send a PR? Thanks!
Environment
1.4.9
0.4.1
Actual behavior
Expected behavior
I expect that the LOC at (https://github.com/phoenixframework/phoenix_live_view/blob/v0.4.1/lib/phoenix_live_view/test/live_view_test.ex#L303) tells me to install Floki, but the error is happening in code that runs before that check.