fable-compiler / Fable

F# to JavaScript, TypeScript, Python, Rust and Dart Compiler
http://fable.io/
MIT License
2.9k stars 296 forks source link

Fable 3.7.20 not compiling at all #3322

Closed AntonioL closed 1 year ago

AntonioL commented 1 year ago

Description

Despite making changes to my .fs files Fable does not seem to compile those files.

tato@dev:~/Projects/datasket/fe/client$ dotnet fable src
Fable: F# to JS compiler 3.7.20
Thanks to the contributor! @Choc13
Stand with Ukraine! https://standwithukraine.com.ua/

Parsing src/App.fsproj...
Retrieving project options from cache, in case of issues run `dotnet fable clean` or try `--noCache` option.
Project and references (3 source files) parsed in 250ms

Skipped compilation because all generated files are up-to-date!

You can see it did not compile anything in the below. I also tried running fable dotnet clean

tato@dev:~/Projects/datasket/fe/client$ find ./src -name ".*.js"
tato@dev:~/Projects/datasket/fe/client$ 

My src/App.fsproj:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net7.0</TargetFramework>
  </PropertyGroup>
  <ItemGroup>
    <Compile Include="Reactstrap.fs" />
    <Compile Include="App.fs" />
  </ItemGroup>
  <ItemGroup>
    <PackageReference Include="Fable.Browser.Dom" Version="2.2.0" />
    <PackageReference Include="Fable.Core" Version="3.2.3" />
    <PackageReference Include="Fable.Remoting.Client" Version="7.22.0" />
    <PackageReference Include="Feliz" Version="1.65.0" />
  </ItemGroup>
  <ItemGroup>
    <ProjectReference Include="..\..\shared\shared.fsproj" />
  </ItemGroup>
</Project>

Related information

Zaid-Ajaj commented 1 year ago

Fable v3 does not yet support net7.0 target framework. Consider changing it to net6.0

AntonioL commented 1 year ago

Thanks. Your assessment is indeed correct. Closing the issue.

MangelMaxime commented 1 year ago

The problem is tracked here: https://github.com/fable-compiler/Fable/issues/3294