Skip to content

Argument #1 ($closure) must be of type Closure, string given #36

Closed
@vedovelli

Description

@vedovelli

Wayfinder Version

0.1.4

Laravel Version

11.9

PHP Version

8.3

Description

The error happens when I try to generate files using ⁠php artisan wayfinder:generate.

Initially, I suspected the problem was due to some routes using closures instead of being linked to controllers. However, after commenting out those routes and attempting again, the error persisted.

Image

Steps To Reproduce

php artisan wayfinder:generate

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