Good morning.
I followed this tutorial: link
But I get the following error in the browser console:
Uncaught ReferenceError: Pusher is not defined
at PusherConnector.connect (VM562 app.js:36739)
at PusherConnector.Connector (VM562 app.js:36305)
at new PusherConnector (VM562 app.js:36730)
at new Echo (VM562 app.js:36960)
at Object.VERSION (VM562 app.js:14124)
at __webpack_require__ (VM562 app.js:20)
at Object.defineProperty.value (VM562 app.js:14005)
at __webpack_require__ (VM562 app.js:20)
at Object.<anonymous> (VM562 app.js:13990)
at __webpack_require__ (VM562 app.js:20)
I searched and said that it was to import this line (import Pusher from "pusher-js") into bootstrap.js, but the error persists.
Can anyone help me?
I'm using laravel 5.6.37