Errors after upgrading to 4.0 #59
-
My code runs fine in 3.x. WebAssembly.Rendering.WebAssemblyRenderer[100] at Microsoft.Extensions.DependencyI (left out the rest of the error message) The code it refers to is builder.Services.AddScoped<Supabase.Client>( This is based on the Does anyone know how I can fix this error? Thanks a lot! Bas |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
The error refers to in assembly 'Gotrue, Version=3.1.1.. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, |
Beta Was this translation helpful? Give feedback.
-
I ran into something unusual when working with a Unity build that might(?) be related. The call to assembly.GetCustomAttribute was failing, and so I wound up needing to replace it with this as a workaround. using System;
using System.Reflection;
namespace Supabase.Core {
public static class Util {
public static string GetAssemblyVersion(Type clientType) {
var assembly = clientType.Assembly;
string informationVersion = "Unknown";
try {
informationVersion = assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()
.InformationalVersion;
} catch (Exception e) {
Console.WriteLine(e);
}
var name = assembly.GetName().Name;
return $"{name.ToString().ToLower()}-csharp/{informationVersion}";
}
}
} |
Beta Was this translation helpful? Give feedback.
-
It works with version 0.10 of supabase c#. Thank you! |
Beta Was this translation helpful? Give feedback.
It works with version 0.10 of supabase c#. Thank you!