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

Method not found: 'Void Blazorise.Modules.BaseJSModule when updating Blazorise to 1.6.0 for abp.io 8.2.1 #20482

Closed
1 task done
sturlath opened this issue Aug 12, 2024 · 12 comments
Assignees
Milestone

Comments

@sturlath
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Description

If I update my abp.io (version 8.2.1) projects Blazorise from 1.5.3 to 1.6.0 I get the following exception.

Unhandled exception rendering component: Method not found: 'Void Blazorise.Modules.BaseJSModule..ctor(Microsoft.JSInterop.IJSRuntime, Blazorise.IVersionProvider)'.
System.MissingMethodException: Method not found: 'Void Blazorise.Modules.BaseJSModule..ctor(Microsoft.JSInterop.IJSRuntime, Blazorise.IVersionProvider)'.
at Blazorise.DataGrid.JSDataGridModule..ctor(IJSRuntime jsRuntime, IVersionProvider versionProvider)
at Blazorise.DataGrid.BaseDataGridComponent.OnInitialized()
at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()
at Blazorise.DataGrid.DataGrid1.SetParametersAsync(ParameterView parameters) [10:10:29 ERR] Unhandled exception in circuit '89BBKUt_Q5D6LVbxZIsEJddhtm9kepM6ZMnvOqG06Ng'. System.MissingMethodException: Method not found: 'Void Blazorise.Modules.BaseJSModule..ctor(Microsoft.JSInterop.IJSRuntime, Blazorise.IVersionProvider)'. at Blazorise.DataGrid.JSDataGridModule..ctor(IJSRuntime jsRuntime, IVersionProvider versionProvider) at Blazorise.DataGrid.BaseDataGridComponent.OnInitialized() at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync() at Blazorise.DataGrid.DataGrid1.SetParametersAsync(ParameterView parameters)

Take a look at my issue at Blazorise Megabit/Blazorise#5685

Reproduction Steps

Update abp.io version 8.2.1 Blazorise project to 1.6.0 and try with DataGrid

Expected behavior

No error

Actual behavior

Exception

Regression?

🤷‍♂️

Known Workarounds

None

Version

8.2.1

User Interface

Blazor Server

Database Provider

EF Core (Default)

Tiered or separate authentication server

None (Default)

Operation System

Windows (Default)

Other information

No response

@sturlath sturlath added the bug label Aug 12, 2024
@maliming maliming removed the bug label Aug 13, 2024
@maliming
Copy link
Member

Please create a new template project and check its blazorise package version.

You should use same version.

@Sturla76
Copy link

But what is causing this and isnt there any workaround? I want to go much faster with Blazorise than abp.io!

And why is Blazorise Grid having this issue with nothing else (no Volo package)? If its trimming you should offer some way of stopping it.

For us that want/need to be on a faster band with a package like Blazorise its a super bad experiance when there is something like this that stops us from doing that.

@maliming
Copy link
Member

But what is causing this and isnt there any workaround?

You can try upgrading Blazorise to 1.6.0 in a new template project to see if the error persists.

@sturlath
Copy link
Contributor Author

I just did @maliming try this one out https://github.com/sturlath/BlazorUpdateTest

New project with updated Blazorise. Just hit the books page

image

@cuno92
Copy link

cuno92 commented Aug 17, 2024

Dear @sturlath , I faced this problem too. My solution is to add the package Blazorise.DataGrid version 1.6.0.

@sturlath
Copy link
Contributor Author

sturlath commented Aug 17, 2024

Thank you @cuno92 that fixed my isse

My solution is to add the package Blazorise.DataGrid version 1.6.0.

I just didn´t think of doing that 🙈since I thought it just wouldn´t work because of some Volo packed thingy..

But this is still something you guys should look into @maliming ...

In the case of APB, I suspect that they should recompile making sure that they are on latest .NET

Megabit/Blazorise#5685 (comment)

@sturlath
Copy link
Contributor Author

@maliming will you recompile as suggested Megabit/Blazorise#5685 (comment) for 8.2.3?

@maliming
Copy link
Member

We will check this when we upgrading Blazorise.

@maliming maliming self-assigned this Aug 26, 2024
@maliming maliming added this to the 9.0-preview milestone Aug 26, 2024
@alvahdean
Copy link

alvahdean commented Sep 3, 2024

I just ran into this and I did upgrade from .NET Sdk 8.0.3 -> 8.0.4 (but that alone doesn't fix it)
The installation of the Blazorise.DataGrid package is what did the trick.
Note that I am using the Blazorise 1.6.1 packages and all is well.
Thanks for tracking this down @sturlath and @cuno92, saved me a lot of time!

@sturlath
Copy link
Contributor Author

sturlath commented Sep 3, 2024

Creat it worked for you @alvahdean. Since you are updating is there any change you are getting either of these #20619 or #20616?

@alvahdean
Copy link

I'm not seeing the same problems you referred to (at least not the "Features") but I'm using the Basic theme so it maybe something in the Lepton code.
I am using ABP 8.2.2, dotnet-sdk 8.0.401 and Blazorise 1.6.1.

@maliming
Copy link
Member

maliming commented Oct 4, 2024

#20960

@maliming maliming closed this as completed Oct 4, 2024
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

5 participants