fable-compiler / repl

Fable online REPL
http://fable.io/repl
MIT License
64 stars 38 forks source link

Adding Fable.Reaction cause Toth.Json error #109

Open OnurGumus opened 4 years ago

OnurGumus commented 4 years ago

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 commented 4 years ago

@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 commented 4 years ago

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

MangelMaxime commented 4 years ago

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.