-
Notifications
You must be signed in to change notification settings - Fork 86
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
The module/namespace Fable.React
from compilation unit Fable.React
did not contain the namespace, module or type ReactElement
#520
Comments
Fable.React
from compilation unit Fable.React
did not contain the namespace, module or type ReactElement
That is correct, when using latet Feliz v2+, you don't have to reference Fable.React. It used to be fine to include them together but because Fable.React was a dependency of Feliz but in 2+ that is no more, they only share the |
Thanks for the quick response and confirmation. We must have a conflicting dependency somewhere. I updated my The sad part is that the IDE (Rider) doesn't help me much - usually when I double-click on build error it takes me to the 'source' of the error - but here nothing ;( I think I will start with a clean repo and add my dependencies one-by-one to see if I can find where it is failing. |
@TerenceHinrichsen did you resolve this issue? I'm facing it too when testing https://github.com/Dzoukr/SAFEr.Template |
@mattgallagher92 When I saw this last time, I deleted |
Thanks for the suggestion @Zaid-Ajaj. Unfortunately it hasn't worked for me. I'll keep digging 🙂 |
@mattgallagher92 it would help if you could make an example repository with that doesn't work. |
Will share one later this week 👍 |
Sorry for only responding now, been a hectic week. |
No problem @TerenceHinrichsen 🙂 @Zaid-Ajaj repro repo at https://github.com/mattgallagher92/SAFEr-fable-react-error, and more details at Dzoukr/SAFEr.Template#13. |
When running a paket update I found myself stuck with the error per the title of the issue.
The module/namespace 'Fable.React' from compilation unit 'Fable.React' did not contain the namespace, module or type 'ReactElement'
I have updated to the to
In my paket.lock file I see the following:
Although these libraries are included in my paket.lock I seem unable to reference them in my application. Do I need to specify Fable.React.Types in my paket.references file as well - or is it sufficient to have the reference to Feliz.
I see there was talk about injecting the Fable.React types #509 but as far as I can see all these changes were merged - thus I suspected I would not be facing any challenges, but after trying different combinations of dependencies I am stuck.
Any advice on how I can resolve the error would be tremendously appreciated.
The text was updated successfully, but these errors were encountered: