I tried something and it also works on my computer. But when i upload my application to production server i get this error “$store is not defined” and the page is empty. I use chrome.
What i did: I have a form in Blade. Every field is a component. And one component toggles some fields. And this compontent sets a variable to vuex store. And in my blade i use this in some divs:
This toggleing works on my computer, but not online… does anyone know a soltuion or what i do wrong?
PS: Maybe it is because my app.js is loaded at the end? But why does it work on my computer.