ionide / Fornax

Scriptable static site generator using type safe F# DSL to define page templates.
MIT License
244 stars 44 forks source link

Samples crash on build #119

Closed HarryMcCarney closed 1 year ago

HarryMcCarney commented 1 year ago

HI, Keen to use fornax but struggling to find a working sample.

The dotnet tool sample has build errors (full errors are below), as does the one in the sample folder of this repo.

Can anyone point me to a working sample, ideally the simplest possible hello world with no extra stuff.

Thanks,

Harry

Dotnet tool Error PS C:\StaticReportGenerator> fornax watch Load Errors: [|C:\StaticReportGenerator\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; C:\StaticReportGenerator\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|] [13:53:53] multiple files generation failed

AND

C:\fornaxexample\samples> fornax build Load Errors: [|C:\fornaxexample\samples\config.fsx (1,1)-(1,67) parameter error Unable to find the file '../src/Fornax.Core/bin/Release/netstandard2.0/Fornax.Core.dll' in any of C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.0 C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0\ref\net7.0 C:\fornaxexample\samples C:\Users\harry.dotnet\tools.store\fornax\0.14.3\fornax\0.14.3\tools\net5.0\any|] Open Errors: [|input.fsx (1,6)-(1,12) typecheck error The namespace or module 'Config' is not defined.|] Get generator Errors: [|input.fsx (1,1)-(1,7) typecheck error The value or constructor 'config' is not defined.|]

HarryMcCarney commented 1 year ago

installing dotnet 5 seems to fix it..