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

numaan's avatar

Laravel Spalde Error on Live Server

I have a small laravel splade app which just has a dashboard listing projects (On going, pending and completed) grouped and a back end with simple CRUD only for Project model. I have pusher as well just to update the projects on dashboard in real time with events. The problem here is when I run the app on localhost on my system there are no issues, but when I deploy it to live server I get error. I use Laravel forge and digital ocean for deployment

JS Error

0 likes
7 replies
LaryAI's avatar
Level 58

The error message in the screenshot suggests that there is a JavaScript error on the live server. This could be caused by a number of things, such as a missing or incorrect JavaScript file, or a syntax error in the code.

To troubleshoot this issue, you can try the following steps:

  1. Check the browser console for any JavaScript errors. This can give you more information about the specific error that is occurring.

  2. Check that all the necessary JavaScript files are being loaded correctly on the live server. You can do this by inspecting the page source and checking that the file paths are correct.

  3. Check that there are no syntax errors in your JavaScript code. You can use a tool like JSHint or ESLint to check for errors.

  4. If you are using a JavaScript framework like Vue or React, make sure that it is set up correctly on the live server.

  5. If you are still unable to resolve the issue, you can try rolling back to a previous version of your code that was working correctly on the live server.

Here is an example of how to use JSHint to check for syntax errors in your JavaScript code:

// Install JSHint using npm
npm install jshint --save-dev

// Run JSHint on your JavaScript file
jshint yourfile.js

This will output any syntax errors in your code that need to be fixed.

numaan's avatar

I got no more information about the error.

numaan's avatar

@CamKem Yes, the debug is false and I don't even have the debug bar installed. What could be the problem if so?

Please or to participate in this conversation.