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

maaz's avatar
Level 2

Laravel Inertia Get Following Error In Console

Hi there, I just install Inertia to check it out but i got the following error in the console. the error is on every page

GET http://localhost:3000/browser-sync/browser-sync-client.js net::ERR_CONNECTION_REFUSED

app.blade.php

<body class="font-sans antialiased">
        @inertia


        @env ('local')
            <script src="http://localhost:3000/browser-sync/browser-sync-client.js"></script>
        @endenv
    </body>
0 likes
3 replies
wingly's avatar

Can you show us the content of your webpack.mix.js?

geshwin's avatar

try:

@env ('local')
    <script src="{{config('app.url')}}:3000/browser-sync/browser-sync-client.js"></script>
@endenv
1 like

Please or to participate in this conversation.