Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting started not working #120

Open
aerphanas opened this issue Dec 18, 2022 · 1 comment
Open

Getting started not working #120

aerphanas opened this issue Dec 18, 2022 · 1 comment

Comments

@aerphanas
Copy link

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
@rdipardo
Copy link
Contributor

rdipardo commented Jan 3, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants