lukevi's avatar

lukevi liked a comment+100 XP

1w ago

Hello everyone, I need some help. After updating my Laravel version and the laravel/boost package, I encountered some strange errors that I’ve never seen before.

Environment

  • Laravel: upgraded from 10.48.16 → 10.49.0
  • laravel/boost: upgraded from 1.1.5 → 1.8.4
  • Editor: Visual Studio Code

Issue 1 — Before updating boost

While still using laravel/boost version 1.1.5, I started getting this error in VS Code:

Error: MPC -32602: Unsupported protocol version
    at R8i.O (...)
    at R8i.L (...)
    at Sce.value (...)

Issue 2 — After updating boost to 1.8.4

After updating the package to 1.8.4, the error changed to:

[warning] Failed to parse message: "\r\n"
[warning] Failed to parse message: "In JsonSchemaTypeFactory.php line 8:\r\n"
[warning] Failed to parse message: "  Interface \"Illuminate\\Contracts\\JsonSchema\\JsonSchema\" not found  \r\n"

It seems the package is looking for Illuminate\Contracts\JsonSchema\JsonSchema ,

but this interface does not exist in Laravel 10.49.x.

What I Have Tried

  • Running composer install and composer dump-autoload
  • Clearing Laravel caches (config:clear, cache:clear, optimize:clear)
  • Restarting VS Code
  • Reinstalling extensions related to Laravel in VS Code

Questions

  1. What causes the MPC -32602 unsupported protocol error in VS Code? Is it caused by incompatibility between laravel/boost and newer Laravel versions?
  2. Why is laravel/boost 1.8.4 referencing Illuminate\Contracts\JsonSchema when this interface does not exist? Did Laravel remove or rename something related to JsonSchema in 10.49?
  3. Does anyone know which Laravel version laravel/boost 1.8.4 is intended to support?

Any help, explanation, or workaround would be greatly appreciated. Thank you!