Skip to content

[Bug]: Route not found error in web.php when using Volt #347

Closed
@bleuren

Description

@bleuren

Extension Version

v1.0.5

PHP Binary

Herd

Operating System

macOS

Description

After installing the package, an error occurs regarding Volt support:

Route [welcome] not found. Laravel Extension(route)

Steps to Reproduce

  1. Install the package.
  2. Add the following code to routes/web.php:
    <?php
    
    use Illuminate\Support\Facades\Route;
    use Livewire\Volt\Volt;
    
    Volt::route('/', 'welcome')->name('home');
    
    require __DIR__ . '/auth.php';

Expected Behavior

The route should be registered without errors.

Actual Behavior

The error message indicates that the route welcome is not found.

Image

Mimimal Code Sample

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @joetannenbaum@N1ebieski@bleuren

    Issue actions

      [Bug]: Route not found error in web.php when using Volt · Issue #347 · laravel/vs-code-extension