Skip to content

fix: install pusher-js so Echo can boot in production - #138

Merged
paulocastellano merged 2 commits into
mainfrom
fix/echo-missing-pusher-js
Sep 14, 2026
Merged

paulocastellano merged 2 commits into
mainfrom
fix/echo-missing-pusher-js

Conversation

@paulocastellano

Copy link
Copy Markdown
Contributor

Summary

  • @laravel/echo-vue imports pusher-js because Reverb speaks the Pusher protocol. Lua never declared that peer, so the production Echo chunk threw Could not resolve "pusher-js" on every signed-in page.
  • Same as TryPost: add pusher-js as a devDependency so Vite can bundle it.

Test plan

  • After deploy, open a signed-in page and confirm the console no longer shows the pusher-js resolve error.
  • Echo still no-ops until something broadcasts — this only stops the crash on boot.

Paulo Castellano added 2 commits September 14, 2026 18:28
@laravel/echo-vue imports pusher-js for the Reverb transport. Without
it the production Echo chunk throws and every signed-in page logs
"Could not resolve pusher-js" in the console.
The install itself is the fix; a test that only reads package.json
does not earn its keep.
@paulocastellano
paulocastellano merged commit b1929e1 into main Sep 14, 2026
5 checks passed
@paulocastellano
paulocastellano deleted the fix/echo-missing-pusher-js branch September 14, 2026 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant