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

Issues with Blazor Web App setup #28

Closed
AlbertoPa opened this issue Jan 31, 2024 · 5 comments
Closed

Issues with Blazor Web App setup #28

AlbertoPa opened this issue Jan 31, 2024 · 5 comments

Comments

@AlbertoPa
Copy link

When configuring the .Net 8 blazor web app, following the instructions, I face two issues:

<BytexDigital.Blazor.Components.CookieConsent.CookieConsentInitializer @rendermode="@RenderMode.Server" />

is not found. and, when adding

builder.Services.AddCookieConsent(o =>
{
    // The same configuration as on the server! Best to put this lambda in a shared project to reuse to reduce duplication.
}, withUserInterface: false);

no AddCookieConsent which takes two inputs is found.

@RyanTT
Copy link
Member

RyanTT commented Jan 31, 2024

Hey, are you using the latest preview version of the library?

@AlbertoPa
Copy link
Author

I was using 1.0.18 (stable).

@RyanTT
Copy link
Member

RyanTT commented Jan 31, 2024

Please try the latest preview, it should work there. I haven't pushed this build to a stable release yet but will do that soon.

@AlbertoPa
Copy link
Author

Testing right now :-)

P.S. Do you have guidelines for auto rendermode? Should we use the InteractiveServer/InteractiveWebAssembly settings as in the example, or just use InteractiveAuto?

@AlbertoPa
Copy link
Author

The preview version works. The only issue I found is that it seems to have one problem when trimming:

image

Other than that, it works fine. Thank you for your help.

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

2 participants