Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

IziPop's avatar
Level 1

Inertia: url updates, but stays on the same page

Hello,

I am using Inertia 0.6.3 & Node v18 in my Laravel V9 app. Before some time, for no particular reason, I started facing strange bahavior when running the "npm run dev" command: when clicking on a <Link /> component the url updates and Inertia progress bar appears (and goes to the end), but it stays on the same page. After page refresh, the page which is navigated to is shown as expected.

Anyone had a similar issue?

in app.js:

createInertiaApp({
  resolve: async (name) => {
	let page = await resolvePageComponent(name, import.meta.glob('../views/pages/**/*.vue'))
	page.layout = page.layout || Layout_1
	return page
},
  setup({ el, app, props, plugin }) {
	const theApp = createApp({
		render: () => h(app, props),
//... end the rest of the code which is irrelevant... 

The problem is not happening when run "npm run build" (without ssr, so the sam file is used)!

No console errors. When logging page in the resolve method, receiving expected response:

Object { name: "MyPage", mixins: (2) […], components: {…}, layout: //etc
0 likes
0 replies

Please or to participate in this conversation.