Closed JoschuaL closed 2 years ago
I don't think the problem comes from Fable.Elmish.HMR but from Elmish.Lit.
If you try to write:
open Lit
open Lit.Elmish
open Elmish.HMR
Even without Fable.ELmish.HMR
you will have the same error.
However looking at Lit.Elmish.HMR.fs implementation I don't see which RequiredQualifiedAccess
attributes is causing that.
You can change your code to:
open Lit.Elmish
open Elmish.HMR
open Lit
To have the error goes away.
The HMR code has been removed from Fable.Lit so this error should not occur now
Description
When trying to use HMR out in a template, when I try to compile the project after adding
Below the other open statements, the compilation fails with the message
Repro code
The template is https://github.com/AngelMunoz/Fable.Lit.Templates/tree/main/templates/elmish-lit
I did nothing aside from adding Fable.Elmish.HMR using femto
added open Elmish.HMR below the other open statements.
the final code
Expected and actual results
Expected the program to compile and run after exectuting npm start
Actual result is the error message mentioned above.
Related information