From dc20813fbc7902cac51622eeea166df2428a1942 Mon Sep 17 00:00:00 2001 From: Paulo Castellano Date: Mon, 14 Sep 2026 18:28:57 -0300 Subject: [PATCH 1/2] fix: install pusher-js so the Echo client can talk to Reverb @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. --- package-lock.json | 18 ++++++++++++++++++ package.json | 1 + tests/Unit/EchoClientDependencyTest.php | 17 +++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 tests/Unit/EchoClientDependencyTest.php diff --git a/package-lock.json b/package-lock.json index 57797067..ccbb801b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -43,6 +43,7 @@ "prettier": "^3.9.6", "prettier-plugin-organize-imports": "^4.3.0", "prettier-plugin-tailwindcss": "^0.6.14", + "pusher-js": "^8.6.0", "tailwindcss": "^4.3.3", "typescript": "^5.9.3", "typescript-eslint": "^8.69.0", @@ -5793,6 +5794,16 @@ "node": ">=6" } }, + "node_modules/pusher-js": { + "version": "8.6.0", + "resolved": "https://registry.npmjs.org/pusher-js/-/pusher-js-8.6.0.tgz", + "integrity": "sha512-wShJPfCS/kYkCBVzVW67wa9cnQIgHTszEK2XHNrFkOgGruuGw081aERAxfRjfdFU+WcIt8x6dvbwkTW4iZuQ8Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "tweetnacl": "^1.0.3" + } + }, "node_modules/qrcode": { "version": "1.5.4", "resolved": "https://registry.npmjs.org/qrcode/-/qrcode-1.5.4.tgz", @@ -6562,6 +6573,13 @@ "url": "https://github.com/sponsors/Wombosvideo" } }, + "node_modules/tweetnacl": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz", + "integrity": "sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw==", + "dev": true, + "license": "Unlicense" + }, "node_modules/type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", diff --git a/package.json b/package.json index 583b78ee..a4eb0f39 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "prettier": "^3.9.6", "prettier-plugin-organize-imports": "^4.3.0", "prettier-plugin-tailwindcss": "^0.6.14", + "pusher-js": "^8.6.0", "tailwindcss": "^4.3.3", "typescript": "^5.9.3", "typescript-eslint": "^8.69.0", diff --git a/tests/Unit/EchoClientDependencyTest.php b/tests/Unit/EchoClientDependencyTest.php new file mode 100644 index 00000000..dacd44c1 --- /dev/null +++ b/tests/Unit/EchoClientDependencyTest.php @@ -0,0 +1,17 @@ +toBeString() + ->and($lock['packages']['node_modules/pusher-js'] ?? null)->toBeArray(); +}); From b1793d6d6956657bac74bb0da9ec3766fe71ea1c Mon Sep 17 00:00:00 2001 From: Paulo Castellano Date: Mon, 14 Sep 2026 18:29:43 -0300 Subject: [PATCH 2/2] chore: drop the pusher-js package.json assertion The install itself is the fix; a test that only reads package.json does not earn its keep. --- tests/Unit/EchoClientDependencyTest.php | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 tests/Unit/EchoClientDependencyTest.php diff --git a/tests/Unit/EchoClientDependencyTest.php b/tests/Unit/EchoClientDependencyTest.php deleted file mode 100644 index dacd44c1..00000000 --- a/tests/Unit/EchoClientDependencyTest.php +++ /dev/null @@ -1,17 +0,0 @@ -toBeString() - ->and($lock['packages']['node_modules/pusher-js'] ?? null)->toBeArray(); -});