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

Adding Fable.Reaction cause Toth.Json error #109

Open
OnurGumus opened this issue Apr 17, 2020 · 3 comments
Open

Adding Fable.Reaction cause Toth.Json error #109

OnurGumus opened this issue Apr 17, 2020 · 3 comments

Comments

@OnurGumus
Copy link

When I added Fable.Reaction, building fails with below error

C:/Users/onur/source/repos/repl/paket-files/thoth-org/Thoth.Json/src/Decode.fs(913,16): (913,66) error FABLE: EnumOfValue only works if the enum type is known at compile time, try inlining the function
C:/Users/onur/source/repos/repl/paket-files/thoth-org/Thoth.Json/src/Decode.fs(920,16): (920,67) error FABLE: EnumOfValue only works if the enum type is known at compile time, try inlining the function
C:/Users/onur/source/repos/repl/paket-files/thoth-org/Thoth.Json/src/Decode.fs(927,16): (927,67) error FABLE: EnumOfValue only works if the enum type is known at compile time, try inlining the function
C:/Users/onur/source/repos/repl/paket-files/thoth-org/Thoth.Json/src/Decode.fs(934,16): (934,68) error FABLE: EnumOfValue only works if the enum type is known at compile time, try inlining the function
C:/Users/onur/source/repos/repl/paket-files/thoth-org/Thoth.Json/src/Decode.fs(941,16): (941,65) error FABLE: EnumOfValue only works if the enum type is known at compile time, try inlining the function
C:/Users/onur/source/repos/repl/paket-files/thoth-org/Thoth.Json/src/Decode.fs(948,16): (948,68) error FABLE: EnumOfValue only works if the enum type is known at compile time, try inlining the function

@MangelMaxime :)

@MangelMaxime
Copy link
Member

@OnurGumus Are you trying to add a new library to the REPL?

You probably upgraded Thoth.Json version without upgrading the version of the compiler used to compile it. So, it is complaining because that version of the compiler can't compile this version of Thoth.Json

@OnurGumus
Copy link
Author

yes trying to add Fable.Reaction. After that i tried to upgrade everything including npm packages. still same. anyways out?

@MangelMaxime
Copy link
Member

#110 Is a PR WIP in order to upgrade the existing libraries but I am facing a problem with at least one of them.

When fixed we will be able to take a look again at your issue.

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