Getting started not working
aerphanas opened this issue · comments
aerphanas commented
Error when trying to run fornax watch
To Reproduce
Steps to reproduce the behaviour:
- alpine linux clean install
- install instruction dotnet from official microsoft website
- execute command
dotnet tool install fornax -g
- make directory Test
mkdir Test
- change directory to Test
cd Test
- make new fornax app with
fornax new
- start webserver
fornax watch
Expected behaviour
successfully run web server
Error Message :
Load Errors: [|/root/test/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;
/root/test/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|]
[11:52:01] multiple files generation failed
Generated site with errors. Waiting for changes...
[11:52:01] Watch mode started. Press any key to exit.
Environment :
- OS: alpine Linux 3.17.0
- dotnet SDK version: 7.0.101
rdipardo commented
Error Message :
Load Errors: [|/root/test/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; /root/test/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.|] [ . . . ]
This looks like a duplicate of #109.
When the current Fornax release was pushed to NuGet, the template generator was still out of sync with the Fornax.Core
assembly (I'm guessing a successful build of the demo project wasn't part of the production workflow 😖).