[Vuejs]-InertiaJS with Laravel & Vue2: Cannot redefine property: $inertia

0👍

I had the same problem.

Here is how your app.js file must look like:

https://inertiajs.com/client-side-setup

summarizing:

  • Remove: Vue.use(App)
  • Change: import(./pages/${name}).then((module) => module.default),
    by require(./Pages/${name}).default,

Leave a comment