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

Farirai's avatar

Laravel Blank Page with no errors on shared hosting

i recently uploaded my laravel on c panel and i get a flash of the page content and then blank page i ran all config caches and optimize clear and npm run build even on my localhost i get the same issue but when i run npm run dev locally i see the page content

0 likes
5 replies
tykus's avatar

So it's your Javascript application rather than Laravel that is likely the problem? Would be surprised if there were no errors in the Browser console, or failed loading an asset in Network tab?

Farirai's avatar

@tykus in console i see

app-3ba64720.js:3 Uncaught SyntaxError: 24 (at app-3ba64720.js:3:103014)
    at ve (app-3ba64720.js:3:103014)
    at ce (app-3ba64720.js:4:6694)
    at a1 (app-3ba64720.js:4:1848)
    at mu (app-3ba64720.js:3:110115)
    at a1 (app-3ba64720.js:4:1596)
    at mu (app-3ba64720.js:3:110115)
    at a1 (app-3ba64720.js:4:1596)
    at mu (app-3ba64720.js:3:110115)
    at a1 (app-3ba64720.js:4:1596)
    at mu (app-3ba64720.js:3:110115)

Failed to load resource: the server responded with a status of 404 (Not Found)
/build/assets/_commonjsHelpers-725317a4.js:1     Failed to load resource: the server responded with a status of 404 (Not Found)
localhost/:1 Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received

tykus's avatar

@Farirai it seems you have some issues with your bundle! Do you deploy built assets or build on the server?

Farirai's avatar

@tykus my gitignore

/.phpunit.cache
/node_modules
/public/hot
/public/storage
/storage/*.key
/vendor
.env
.env.backup
.env.production
.phpunit.result.cache
Homestead.json
Homestead.yaml
auth.json
npm-debug.log
yarn-error.log
/.fleet
/.idea
/.vscode

Please or to participate in this conversation.