[Vuejs]-Laravel 9: How to rebuild Javascript files in a project

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

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?

Leave a comment