ReactiveElmish Nuget update needed? #38
Answered
by
JordanMarr
hhaynes-rower
asked this question in
Q&A
-
I just moved/refactored my app out of the ReactiveElmish folder path so I went and pulled the latest available versions of ReactiveElmish and ReactiveElmish.Avalonia from Nuget and tried to run - and while the project built I get this runtime error ---> System.MissingMethodException: Method not found: 'System.Collections.ObjectModel.ReadOnlyObservableCollection`1<!!1> ReactiveElmish.ReactiveElmishViewModel.BindSourceList(DynamicData.ISourceList`1<!!0>, Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<!!0,!!1>>, Microsoft.FSharp.Core.FSharpOption`1<System.String>)'.
at AidenDesktop.ViewModels.ChatViewModel..ctor()
at AidenDesktop.Views.ChatView..ctor() in C:\repos\Rower\Aiden\src\AidenDesktop\Views\ChatView.axaml.fs:line 11
at System.RuntimeType.CreateInstanceOfT()
--- End of inner exception stack trace ---
at System.RuntimeType.CreateInstanceOfT()
at System.Activator.CreateInstance[T]()
at ReactiveElmish.Avalonia.View.Singleton[View]() in C:\_github\ReactiveElmish.Avalonia\src\ReactiveElmish.Avalonia\CompositionRoot.fs:line 31
at AidenDesktop.AppCompositionRoot.RegisterViews() in C:\repos\Rower\Aiden\src\AidenDesktop\AppCompositionRoot.fs:line 31
at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
at System.Lazy`1.CreateValue()
at ReactiveElmish.Avalonia.CompositionRoot.GetView(Type vmType) in C:\_github\ReactiveElmish.Avalonia\src\ReactiveElmish.Avalonia\CompositionRoot.fs:line 64
at AidenDesktop.App.OnFrameworkInitializationCompleted() in C:\repos\Rower\Aiden\src\AidenDesktop\App.axaml.fs:line 21
at Avalonia.AppBuilder.SetupUnsafe()
at Avalonia.AppBuilder.Setup()
at Avalonia.AppBuilder.SetupWithLifetime(IApplicationLifetime lifetime)
at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilder builder, String[] args, ShutdownMode shutdownMode)
at AidenDesktop.Program.main(String[] argv) in C:\repos\Rower\Aiden\src\AidenDesktop\Program.fs:line 29 Since this seems to be pointing to a missing |
Beta Was this translation helpful? Give feedback.
Answered by
JordanMarr
Dec 15, 2023
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
hhaynes-rower
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No need to explicitly add the "ReactiveElmish" package as that's included in the "ReactiveElmish.Avalonia" package.
Also, make sure you are not still adding ReactiveElmish.Avalonia as a project reference.
In other words, you can replace these two lines with a single package reference to "ReactiveElmish.Avalonia":