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

Usage with older Fable compiler #95

Open
spingee opened this issue Dec 19, 2020 · 4 comments
Open

Usage with older Fable compiler #95

spingee opened this issue Dec 19, 2020 · 4 comments

Comments

@spingee
Copy link
Contributor

spingee commented Dec 19, 2020

Hi,
I tried to add Autocomplete example to my app which was based on safe stack template, it didnt work because it cant find some compiled js , see the warning from console:

WARNING in ./src/Client/Views/Autocomplete.fs 177:23-81 "export 'Reaction$$$useStatefulStream$$5E046E25' (imported as 'Reaction$0024$0024$0024useStatefulStream$0024$00245E046E25') was not found in '../../../.fable/Fable.Reaction.3.5.0/Reaction.fs' @ ./src/Client/Views/Index.fs @ ./src/Client/App.fs @ ./src/Client/Client.fsproj

when i run autocomplete example from this repo it will generate *.js in .fable/Fable.Reaction.3.5.0 but not in my app, there are no js files.
So is this library only usable with fable compiler 3.0 and my only option is upgrade my app to it? Or is there some "workaround".
Thanks

@spingee
Copy link
Contributor Author

spingee commented Dec 20, 2020

Or perhaps its .net5 related problem?

@dbrattli
Copy link
Owner

I think it's an issue with the [Erase] attribute used on https://github.com/dbrattli/Fable.Reaction/blob/main/src/Reaction.fs#L23

We should probably just remove it since it's causing these problems.

@spingee
Copy link
Contributor Author

spingee commented Dec 20, 2020

Yes, i removed it from file in .fable directory and it started to work

@dbrattli
Copy link
Owner

Nice, please feel free to submit a PR

spingee added a commit to spingee/Fable.Reaction that referenced this issue Dec 20, 2020
spingee added a commit to spingee/Fable.Reaction that referenced this issue Dec 20, 2020
spingee added a commit to spingee/Fable.Reaction that referenced this issue Dec 20, 2020
dbrattli added a commit that referenced this issue Dec 20, 2020
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