Level 46
What the docs don;'t tell you that you need to set up Mix to compile your Vue components.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi there, I'm new to Inertia, and I followed their docs step by step, client-side and server-side.
But for some reason I'm getting 2 errors. I've try to find a solution multiple times but I couldn't get it to work.
Error 1 in browser:
app.js:33732 Uncaught (in promise) Error: Cannot find module './Index'
Error 2 in cmd:
ERROR in ./resources/js/Pages/Index.vue 1:0
Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> <template>
| <div>This will be pre-compiled</div>
| </template>```
Does anyone know how to fix these errors?
What the docs don;'t tell you that you need to set up Mix to compile your Vue components.
Please or to participate in this conversation.