Fatal error: Class "blade.compiler" when upgrade laravel8

We have a requirement to upgrade our website from php7.2 to php8.0
I upgrade the Laravel version to v8 which is the lowest version which support php8.1
After the upgrade most of the php8.1 related issues were fixed. But I got this Fatal error.

Fatal error: Uncaught ReflectionException: Class "blade.compiler" does not 
exist in /var/www/app/wp-content/plugins/xxx/vendor/illuminate/container/Container.php:877 

Stack trace: #0 /var/www/app/wp-content/plugins/xxx/vendor/illuminate/container/Container.php(877): 
ReflectionClass->__construct('blade.compiler') 
#1 /var/www/app/wp-content/plugins/xxx/vendor/illuminate/container/Container.php(758): Illuminate\Container\Container->build('blade.compiler') 
#2 /var/www/app/wp-content/plugins/xxx/vendor/illuminate/container/Container.php(694): Illuminate\Container\Container->resolve('blade.compiler', Array) 
#3 /var/www/app/wp-content/plugins/xxx/vendor/illuminate/container/Container.php(1419): Illuminate\Container\Container->make('blade.compiler') 
#4 /var/www/app/wp-content/themes/xx/vendor/illuminate/view/ViewServiceProvider.php(150): Illuminate\Container\Container->offsetGet('blade.compiler') 
#5 [internal function]: Illuminate\View\ViewServiceProvider->Illuminate\View\{closure}() 
#6 /var/www/app/wp-content/themes/xx/vendor/illuminate/view/Engines/EngineResolver.php(55): call_user_func(Object(Closure)) 
#7 /var/www/app/wp-content/themes/xx/app/lib/Sage/Template/Blade.php(38): Illuminate\View\Engines\EngineResolver->resolve('blade') 
#8 /var/www/app/wp-content/themes/xx/app/setup.php(395): Roots\Sage\Template\Blade->compiler() 
#9 /var/www/app/wp-includes/class-wp-hook.php(307): App\{closure}('')
#10 /var/www/app/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) 
#11 /var/www/app/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
#12 /var/www/app/wp-settings.php(565): do_action('after_setup_the...') 
#13 /var/www/app/wp-config.php(46): require_once('/var/www/app/wp...') 
#14 /var/www/app/wp-load.php(50): require_once('/var/www/app/wp...') 
#15 /var/www/app/wp-admin/admin.php(34): require_once('/var/www/app/wp...') 
#16 /var/www/app/wp-admin/index.php(10): require_once('/var/www/app/wp...') 
#17 {main} Next Illuminate\Contracts\Container\BindingResolutionException: Target class [blade.compiler] does not exist. in /var/www/app/wp-content/plugins/xxx/vendor/illuminate/container/Container.php on line *879*

( ! ) Illuminate\Contracts\Container\BindingResolutionException: 
Target class [blade.compiler] does not exist. in /var/www/app/wp-content/plugins/xxx/vendor/illuminate/container/Container.php on line *879*

Sage version is 9.0.0-beta.3

Thank you

You need to provide more details

How did you do this? What is your composer.json? What are the minimal reproduction steps?

See How to best ask questions on this forum

Still testing in locally on Docker.

This is my composer.json file

{
  "name": "roots/sage",
  "type": "wordpress-theme",
  "license": "MIT",
  "description": "WordPress starter theme with a modern development workflow",
  "homepage": "https://roots.io/sage/",
  "authors": [
    {
      "name": "Xxxx",
      "email": "xxx@xxx.com",
      "homepage": "https://github.com/retlehs"
    },
    {
      "name": "Xxxx xxx",
      "email": "xxxxx@xxx.com",
      "homepage": "https://github.com/swalkinshaw"
    }
  ],
  "keywords": [
    "wordpress"
  ],
  "support": {
    "issues": "https://github.com/roots/sage/issues",
    "forum": "https://discourse.roots.io/"
  },
  "autoload": {
    "psr-4": {
      "Roots\\Sage\\": "app/lib/Sage/",
      "Xxxx\\Nova\\": "app/lib/Nova/",
      "Xxxx\\": "app/lib/Xxxx"
    }
  },
  "require": {
    "php": "^8.0",
    "composer/installers": "~2.2.0",
    "illuminate/view": "^8.0",
    "illuminate/config": "^8.0"
  },
  "require-dev": {
    "squizlabs/php_codesniffer": "^3.7.0",
    "lucatume/wp-browser": "^v4.x-dev"
  },
  "scripts": {
    "test": [
      "phpcs -v"
    ],
    "post-create-project-cmd": [
      "Roots\\Sage\\PostCreateProject::updateHeaders",
      "Roots\\Sage\\PostCreateProject::selectFramework",
      "Roots\\Sage\\PostCreateProject::addFontAwesome",
      "Roots\\Sage\\PostCreateProject::buildOptions"
    ]
  },
  "config": {
    "allow-plugins": {
      "composer/installers": true,
      "kylekatarnls/update-helper": true
    }
  }
}

Take a look at this topic: