-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
I get "window.LaravelCookieConsent is undefined" in console.log when i click on any button and it doesn't work #63
Comments
|
Looks like the JS isn't included. Did you load the scripts into the page and check you don't have custom rules preventing them to run correctly? |
I used the blade directives just as was stated in the guide. Although I have a vue.js app.js script on the page. I don't know if that's causing the conflict |
Could be, can you see the JS file in the browser's network tab ? |
I had a similar issue and found a solution, maybe this helps you: #64 Try to update the url prefix in cookieconsent.php to |
I'm bumping this. Uncaught TypeError: Cannot read properties of undefined (reading 'acceptAll') Which originates from the I used the Installation guide with a Laravel 11.x installation. |
Has anyone managed to track this one down? Error tracking is flagging this one up by I can't replicate myself. EDIT: A quick fix for this is to hide the modal with CSS and show it once all scripts have loaded. The issue is where the modal is shown but the Javascript hasn't loaded yet. I've added this to the cookies.blade.php view and added a hidden class to the main element (tailwind).
|
I get "window.LaravelCookieConsent is undefined" in console.log when i click on any button and it doesn't work
The text was updated successfully, but these errors were encountered: