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

MichaelBraycarl's avatar

InertiaJs does not import from a 'Components' folder inside 'Pages' folder

this is my first project with InertiaJS and I can not understand why Inertia cant find the 'components' folder I created inside 'Pages'. Am I missing some kind of registration or something like that?

Console shows me a error omegle.2yu.co message like 'ReferenceError: Card is not defined at Module../node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/Pages/Components/Card.vue?vue&type=script&lang=js'

'Card.vue' is a component I have https://omglz.com, like 'Pages>Components>Card.vue'.

0 likes
2 replies

Please or to participate in this conversation.