-
Notifications
You must be signed in to change notification settings - Fork 309
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 FABLE: Cannot reference entity from .dll reference: Chia.Shared.Ids.SortableRowKey #2237
Comments
@tforkmann Is Chia compiled as a shared library or referenced as a project? If it is a library where you don't have access to the source code, then you can make it Fable-compatible by publishing the sources as well like all Fable packages do |
Yes, as @Zaid-Ajaj says, you need to include the F# sources in the package for Fable to be able to compile and access the code as in here: https://github.com/Fulma/Fulma/blob/0e7330d95f7555710dde1f0f992732b9bb357a43/src/Fulma/Fulma.fsproj#L68-L71 Maybe we should improve the error message 🤔 |
Thanks guys! That worked! |
@Zaid-Ajaj I'm getting the same error when using |
@joprice If possible get rid of Chia since the maintainer of that project arent working at that company anymore. |
Thank you, but I'm not using Chia. This is for a separate compiler plugin I've written locally. |
ahh ok |
I just noticed that the errors are actually for transitive dependencies. Not sure if that helps clarify the error:
|
Ah this was the issue: #3625 (comment). Need to exclude it from compilation to avoid generating js for the plugin code. |
Description
Chias shared model doesn't get fully compiled.
I get following error message:
error FABLE: Cannot reference entity from .dll reference: Chia.Shared.Ids.SortableRowKey
Repro code
The module inside Chia looks like this:
Is there any way to get this working?
Expected and actual results
Module should get compile
Related information
The text was updated successfully, but these errors were encountered: