thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.78k stars 2.67k forks source link

admin:252 Uncaught ReferenceError: Vue is not defined at admin:252 #5058

Closed maxillarious closed 4 years ago

maxillarious commented 4 years ago

Version information

Description

I get this error when ever i deploy my laravel app and till now my menu hasn't displayed but on my local machine there is no error.

NOTE: I have a separate table for admins

Screenshots

error_one

error_three

emptynick commented 4 years ago

Would be useful to see the whole message from screenshot number 1. But it might be a problem with one of your extensions. Try disabling them or open Voyager in incognito, clear your browser cache and try again.

maxillarious commented 4 years ago

I just changed the screenshot number 1.

As for the extensions i disabled all of them still i get same error and my menu has not yet displayed.

I also open Voyager in an incognito tab still the same error and my menu has not yet displayed.

I also did the browser cache path still same error and my menu has not yet displayed

maxillarious commented 4 years ago

So @emptynick is there any solution available.

maxillarious commented 4 years ago

@emptynick i just fixed it.

The problem was not coming from Voyager, it was coming from spatie/laravel-cookie-consent.

As soon as i removed the package(spatie/laravel-cookie-consent) with its config file and middleware my problem was solved.

So i think there is a problem with one of there JavaScript file that was interferring with Voyager.

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.