Add your code to code blocks other wise its hard to read for us. Before the code you have to start with 3 backticks and at the end of the code close with 3 backticks.
What code do you have in your app.blade file and do you use vite?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Trying to integrate a frontend framework to my current laravel application. But having trouble getting my app-vue.js file to render. laravel version - 9.52.16 vue version - 3.4.15
app-vue.js file
import { createApp, h } from 'vue'
import { createInertiaApp } from '@inertiajs/vue3'
createInertiaApp({
resolve: (name) => require(`./Pages/${name}.vue`),
setup({ el, App, props, plugin }) {
createApp({ render: () => h(App, props) })
.use(plugin)
.mount(el)
},
})
set up files in /resources/js/Pages/CrmIntegration/Index.vue
my app.blade.php
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<script src="{{ mix('/js/app-vue.js') }}" defer></script>
@inertiaHead
</head>
<body>
@inertia
</body>
</html>
Please or to participate in this conversation.