laravel-ignition: Error Page is not rendering CSS.

Hello there! I just updated a Laravel 8 application to Laravel 9. In my composer.json I updated: "facade/ignition": "^2.5" to "spatie/laravel-ignition": "^1.0"

I then ran composer update. In a sample route file: I manually threw an exception with throw new \Exception('testing').
The error page that get rendered shows the content but the CSS is not being loaded. I have included a image at the bottom. Is there something I’m missing or an additional composer command I need to run?

Thank you for the assistance.

Screen Shot 2022-02-10 at 8 04 27 AM

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 21 (3 by maintainers)

Most upvoted comments

Hey all, a fix has been tagged here. Running composer update on your projects will automatically pull this in. Please let me know if this fixes your issues 😃

For me, the html is malformed:

<!DOCTYPE html>
<html lang="en" class="auto">
<!--
[stacktrace was here]
-->
<head>
    <!-- Hide dumps asap -->
    <style>
        pre.sf-dump {
            display: none !important;
        }
    </style>

    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="robots" content="noindex, nofollow">

    <title>Undefined property: App\Models\UserGame::$score</title>

</head>
<body class="scrollbar-lg">

<script>
    window.data = <!-- Undefined property: App\Models\UserGame::$score (500 Internal Server Error) -->
<!DOCTYPE html>
<html lang="en">

Screen Shot 2022-02-13 at 01 25 33

Screen Shot 2022-02-13 at 03 15 18

Screen Shot 2022-02-13 at 01 36 04

The same on Mac OS X in Chrome latest version. spatie/laravel-ignition: 1.0.4