Skip to content

Target class [blade.compiler] does not exist #57078

@leigeber

Description

@leigeber

Laravel Version

12.29.0

PHP Version

8.4.1

Database Driver & Version

No response

Description

After updating from 12.28.1 to 12.29.0 the php artisan package:discover command throws the following exception.

local.ERROR: Target class [blade.compiler] does not exist. {"exception":"[object] (Illuminate\\Contracts\\Container\\BindingResolutionException(code: 0): Target class [blade.compiler] does not exist. at /redacted/vendor/laravel/framework/src/Illuminate/Container/Container.php:1163)

This is in a console-only project where I didn't have ViewServiceProvider included. Adding that provider does resolve package discovery, but seems like that likely isn't intended? Thanks.

Steps To Reproduce

Run php artisan package:discover on a new project without the ViewServiceProvider loaded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions