Skip to content

Laravel Vite page return 404 after restarting the server #140

@amlxv

Description

@amlxv
  • Laravel Vite Plugin Version: 0.6.0
  • Laravel Version: 9.29.0
  • Node Version: 18.7.0
  • PNPM Version: 7.10.0
  • Host operating system: Windows 11 Home Single Language 10.0.22000
  • Web Browser & Version: Chrome 105.0.5195.102
  • Running in Sail / Docker: No

Description:

I have tried reproducing using Vite+TS, but the page still works even if the server is automatically restarted.

Screenshot 2022-09-12 230948

Screenshot 2022-09-12 231050

Steps To Reproduce:

  1. Create a Laravel project via the Composer.
  2. Run pnpm install & pnpm run dev.
  3. Open the given link (e.g., http://localhost:5173/).
  4. The "Laravel Vite" page will normally appear.
  5. Save the vite.config.js. It'll restart the server.
  6. Revisit the link or refresh the "Laravel Vite" page will result in HTTP ERROR 404
  7. Re-running pnpm run dev can fix this problem but it still does not work when the server is automatically restarted.

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