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

pthiers's avatar

Remove vite from api in laravel

Hi! I want to remove or disable vite or laravelIgnition. Now we are develop a new project, a authorization api for the another company project, but in any error, allways appear a stacktrace: Spartie\LaravelIgnition\Exceptions\ViewException: Vite manifest not found at: ...

Can any help me with this? Thanks!!!

0 likes
5 replies
vincent15000's avatar

I don't know how to remove vite, but I can help you to have the manifest. You have to run npm run build, it creates the manifest and then you won't have any error.

pthiers's avatar

@vincent15000 yeah, I have a start script just install the node_modules and run the npm run build every time we start the project, but only i want the json stack trace, no laravel ignition, becouse is a json api

1 like
vincent15000's avatar
Level 63

@pthiers Try this.

composer remove spatie/laravel-ignition

But this package is very useful to debug your application. That's nothing to do with errors for the users, it's for the developer.

1 like
pthiers's avatar

@vincent15000 thanks you, that work. we currently use xdebug for debugging in our lumen applications, so we're pretty used to working that way

1 like
MohamedTammam's avatar

That page shouldn't show if you're sending an API request. Make sure to add in your request Accept: application/json header.

1 like

Please or to participate in this conversation.