Skip to content

Inertia setup with ViteJS doesn't detect page changes #1074

Answered by Vercoutere
Vercoutere asked this question in Help
Discussion options

You must be logged in to vote

By luck, and a good night's sleep I've stumbled upon the issue myself.

In the client.ts file upon initializing the Inertia instance, I've used a capital for the directory from which to import page components.

return (await import(`./Pages/${name}.vue`)).default;

Fixing this solved the issue.

Having no obvious error made this quite a difficult issue to debug. Hopefully this can help someone else out.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@ajnsn
Comment options

@Vercoutere
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Vercoutere
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants