Code Monkey home page Code Monkey logo

Comments (8)

fgilde avatar fgilde commented on August 18, 2024

Have you added the mud extension services?

builder.Services.AddMudExtensions();

from mudblazor.extensions.

DragoQCC avatar DragoQCC commented on August 18, 2024

yes, i have that and also the app.UseMudExtensions(); as well. I haven't changed my code at all except for doing an upgrade to the package in Nuget.

from mudblazor.extensions.

DragoQCC avatar DragoQCC commented on August 18, 2024

seems the errors start at 1.7.64 Starting at that version I get an error about failed JS interop calls and versions newer then 1.7.65 give me the error i posted. Going back to anything older like 1.7.63 seems to work as expected.

from mudblazor.extensions.

fgilde avatar fgilde commented on August 18, 2024

Can you please check if your problem is solved with this package?

1.7.68-prev-2309171718-open...

from mudblazor.extensions.

fgilde avatar fgilde commented on August 18, 2024

seems the errors start at 1.7.64 Starting at that version I get an error about failed JS interop calls and versions newer then 1.7.65 give me the error i posted. Going back to anything older like 1.7.63 seems to work as expected.

Then you have problems with your service registrations. Make sure MudServices are registered first and MudExtensionsServices afterwards

or call builder.Services.AddMudServicesWithExtensions() to register both correctly

from mudblazor.extensions.

DragoQCC avatar DragoQCC commented on August 18, 2024

That version did not seem to make a difference. I also get this error when using the MudExFileDisplay

 Unhandled exception rendering component: Cannot provide a value for property 'FileService' on type 'MudBlazor.Extensions.Components.MudExFileDisplayDialog'. There is no registered service of type 'MudBlazor.Extensions.Services.MudExFileService'.

My program.cs does load them in the correct order

        builder.Services.AddMudServices();
        builder.Services.AddMudExtensions();

Again, everything seems fine up until the 1.7.64 update, which throws errors on these two components.

from mudblazor.extensions.

fgilde avatar fgilde commented on August 18, 2024

That version did not seem to make a difference. I also get this error when using the MudExFileDisplay

 Unhandled exception rendering component: Cannot provide a value for property 'FileService' on type 'MudBlazor.Extensions.Components.MudExFileDisplayDialog'. There is no registered service of type 'MudBlazor.Extensions.Services.MudExFileService'.

My program.cs does load them in the correct order

        builder.Services.AddMudServices();
        builder.Services.AddMudExtensions();

Again, everything seems fine up until the 1.7.64 update, which throws errors on these two components.

Sure its a difference its another service that will not injected. So that means all registered services doesnt work in your app.

from mudblazor.extensions.

DragoQCC avatar DragoQCC commented on August 18, 2024

I have figured out the issue it was a conflict with the code beam mud extension package. They also tell you to use builder.Services.AddMudExtensions(); fix for this was just to refer to both by the full namespace

        MudExtensions.Services.ExtensionServiceCollectionExtensions.AddMudExtensions(builder.Services);
        MudBlazor.Extensions.ServiceCollectionExtensions.AddMudExtensions(builder.Services);

from mudblazor.extensions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.