ionide / Fornax

Scriptable static site generator using type safe F# DSL to define page templates.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting started not working

aerphanas opened this issue · comments

Error when trying to run fornax watch

To Reproduce
Steps to reproduce the behaviour:

  1. alpine linux clean install
  2. install instruction dotnet from official microsoft website
  3. execute command dotnet tool install fornax -g
  4. make directory Test mkdir Test
  5. change directory to Test cd Test
  6. make new fornax app with fornax new
  7. 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.

Screenshots
Error message :
Screenshot from 2022-12-18 12-05-23

dotnet --info ;
Screenshot from 2022-12-18 12-10-52

Environment :

  • OS: alpine Linux 3.17.0
  • dotnet SDK version: 7.0.101

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 😖).