Manifest.json cause 404 error if file in resources is missing
Closed this issue · 2 comments
nathanaelytj commented
Telescope Version
5.0.2
Laravel Version
11.4.0
PHP Version
8.3.4
Database Driver & Version
No response
Description
When telescope updated dashboard won't open with error like:
GET http://localhost:5173/resources/sass/styles.scss net::ERR_ABORTED 404 (Not Found)
GET http://localhost:5173/resources/js/app.js net::ERR_ABORTED 404 (Not Found)
This issue seem to be the same issue as laravel/horizon#1416
After reading commit history, this file seems to be the culprit too: public/build/manifest.json
Steps To Reproduce
- Create new laravel project
- Install telescope
- Remove or rename file
resources/js/app.js
andresources/sass/styles.scss
- Open telescope dashboard and this issue will happen
driesvints commented
Did you publish the new assets like: https://github.com/laravel/laravel/blob/11.x/composer.json#L39
php artisan vendor:publish --tag=laravel-assets --ansi --force
driesvints commented
Reverted