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,
Source:stackexchange.com