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

[Bug] V 1.14.0 - missing dependency "Localization" #213

Closed
christopher-bonitz opened this issue Nov 26, 2020 · 2 comments
Closed

[Bug] V 1.14.0 - missing dependency "Localization" #213

christopher-bonitz opened this issue Nov 26, 2020 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@christopher-bonitz
Copy link

Describe the bug
After upgrading my Nuget to1.14.0 the project no longer works in runtime, I'm having a pure web-assembly app.
The error goes away if I rollback the version to 1.13.1, and re-appears if I redo the upgrade, so its consistent.

I have noticed the added "Localization" dependency in the new version, I'm trying to keep my footprint small, so I wonder what is added in the new version.

I'm having the same error on multiple tables, so it fails consistently as well.

To Reproduce

  • Nuget install 1.14.0
  • Clean solution
  • Build

Reverse this to rollback.

crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: Cannot provide a value for property 'Localization' on type 'BlazorTable.Table`1[[***.Models.User, ***.Models, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'. There is no registered service of type 'Microsoft.Extensions.Localization.IStringLocalizer`1[BlazorTable.Components.Localization]'.
System.InvalidOperationException: Cannot provide a value for property 'Localization' on type 'BlazorTable.Table`1[[***.Models.User, ***.Models, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'. There is no registered service of type 'Microsoft.Extensions.Localization.IStringLocalizer`1[BlazorTable.Components.Localization]'.

Expected behavior
To not have critical exceptions

@christopher-bonitz christopher-bonitz added the bug Something isn't working label Nov 26, 2020
@IvanJosipovic
Copy link
Owner

IvanJosipovic commented Nov 26, 2020

Hey,

The release 1.14.0 has a braking change due to the addition of Localization. Please review the readme.

  • Add call to Program.cs or Startup.cs
    • Services.AddBlazorTable();

@IvanJosipovic IvanJosipovic self-assigned this Nov 26, 2020
@IvanJosipovic IvanJosipovic pinned this issue Nov 26, 2020
@christopher-bonitz
Copy link
Author

Hey,

The release 1.14.0 has a braking change due to the addition of Localozation. Please review the readme.

* Add call to Program.cs or Startup.cs
  
  * Services.AddBlazorTable();

Great! that did the trick.
I implemented the following line in my Program.cs file
builder.Services.AddBlazorTable();

Thanks for the help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants