0👍
You need use npm run dev to start your vue server and remember, js is loaded when page was stored in browser memory, so do a full reload
- Command + Shift + R in mac
- CTRL + Shift + F5 in windows
- [Vuejs]-Laravel API routes not working in production but work in dev environment
- [Vuejs]-How can I auto logout vue app after tab is closed?
0👍
We updated to Laravel to v9 recently and had to modify the js files in this way:
import Vue from "vue";
Vue.component("example", () => import("./components/ExampleComponent"));
Source: Vue template or render function not defined yet I am using neither?
Source:stackexchange.com