Closed kylegoetz closed 1 year ago
Oh, FWIW Node 15.14.0 and .Net 7.0.102. This is a brand new .Net install, having never done anything with .Net in my life.
Hello, there is currently an issue with Fable 3 and .NET7.
You need to fix .NET to version 6, instruction can be found in this issue:
How long should it take to serve? Because I added this file and did npm start
and it's still hanging in the same place ("Project and references (3 source files) parsed in 76ms"). global.json is in the same directory as package.json.
And this time the beginning of the invocation contains
> prestart
> dotnet tool restore
Welcome to .NET 6.0!
---------------------
SDK Version: 6.0.405
So I know it's doing v6 now.
It is possible that you need to clean cached values.
If the gitignore file is set up correctly you can do gti clean -xdf
or delete the obj
and bin
near the fsproj
file.
Thanks. dotnet fable clean
did it and now I can serve and get the Hello World.
@MangelMaxime
I'm actually having the same issue, with npm start
hanging at the same place. However, dotnet fable clean
does not seem to fix it.... It's a completely fresh install of the template, on windows.
Yes, I have global.json set with net 6.0. And both 6 and 7 are installed on my machine. However, I was able to get it working after downgrading npm to version 15. Not sure how that makes sense, but here we are....
@MangelMaxime Do you think that it would be worthwhile to add:
"engines": {
"node": "15.14.0"
},
in the Feliz template package.json
to force a 15.whatever node version?
At least that would make the error obvious (and maybe a note about how to leverage nvm
)
Had to jump through quite many hoops / GitHub issues before being able to get started.
Do you have an error message or something that explains why you need node 15?
I am asking because Fable is not tied to a specific Node.js version and so if you have a problem it is most likely related to one of the JavaScript dependency
Right off the Feliz website, I follow the instructions:
I visit http://localhost:8080 and there is no server running.
Is there something I'm missing?