`fornax new` generates project that fails to build
Jlll1 opened this issue · comments
Jlll1 commented
Describe the bug
The project generated with fornax new
fails to build.
$ fornax build
Load Errors: [|/home/rb/source/fornax-playground/generators/layout.fsx (67,53)-(67,59) typecheck error The union cases or fields of the type 'HtmlElement' are not accessible from this code location;
/home/rb/source/fornax-playground/generators/layout.fsx (67,53)-(67,89) typecheck error All elements of a list must be implicitly convertible to the type of the first element, which here is 'HtmlProperties'. This element has type 'HtmlElement'.|]
Open Errors: [|input.fsx (1,6)-(1,11) typecheck error The namespace or module 'Index' is not defined.|]
Get generator Errors: [|input.fsx (1,16)-(1,24) typecheck error The value or constructor 'generate' is not defined. Maybe you want one of the following:
Generating
GenerationPhase
GeneratorConfig
GeneratorOutput
GeneratorTrigger|]
[16:40:49] multiple files generation failed
To Reproduce
Steps to reproduce the behaviour:
- Create a new project using
fornax new
- Try to build it using
fornax build
orfornax watch
- See error
Expected behaviour
The project should build without any problems
Environment (please complete the following information):
- OS: Linux 5.18.11_1
- Ionide version: N/A
- VSCode version: N/A
- dotnet SDK version: 6.0.301
- mono / .Net Framework version: none
Maxime Mangel commented
Hello @Jlll1,
I send a PR to fix this issue. If you need it now, please look at it this is a one line change.