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

Error about missing symbols when trying to build a project using types from Feliz.PrimeReact #17813

Closed
auduchinok opened this issue Sep 27, 2024 · 2 comments
Assignees
Milestone

Comments

@auduchinok
Copy link
Member

Consider this project:

<Project Sdk="Microsoft.NET.Sdk">
    <PropertyGroup>
        <OutputType>Exe</OutputType>
        <TargetFramework>net8.0</TargetFramework>
    </PropertyGroup>

    <ItemGroup>
        <Compile Include="Program.fs"/>
    </ItemGroup>

    <ItemGroup>
      <PackageReference Include="Feliz" Version="2.8.0" />
      <PackageReference Include="Feliz.PrimeReact" Version="0.3.0" />
    </ItemGroup>
</Project>
open Feliz

Prime.button |> ignore

When trying to build it, there's an unusual error:

Error FS0193 : The module/namespace 'ReactApi' from compilation unit 'Feliz' did not contain the val 'ValLinkagePartialKey(createElement)'
@kerams
Copy link
Contributor

kerams commented Sep 28, 2024

If the point of this issue is the cause of the error rather than the message talking about compiler internals, it's because Feliz.PrimeReact is not compatible with Feliz 2, which no longer contains createElement. My guess is that because button is inline, the "method body transplant" fails in an atypical way, since the createElement referenced from Feliz.PrimeReact.dll does not exist in the currently used version of Feliz.dll. Were the function not inline (and were this not a Fable project), you'd probably get a type load exception at run time instead.

@T-Gro
Copy link
Member

T-Gro commented Sep 30, 2024

Which means the error should also go away if only "Feliz.PrimeReact" is referenced and it takes the right Feliz version as a dependency?

Can I close this issue, or do you there is anything actionable?

@abonie abonie closed this as not planned Won't fix, can't repro, duplicate, stale Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

5 participants