Import Echo from Laravel-echo not defined
aleiruiz opened this issue · 0 comments
aleiruiz commented
Hello, i have done your setup step by step but im kind of lost with this code
`require('webrtc-adapter');
window.Cookies = require('js-cookie');
import Echo from "laravel-echo"
window.io = require('socket.io-client');
window.Echo = new Echo({
broadcaster: 'socket.io',
host: window.location.hostname + ':6001'
});`
I put that on my App's head element, but i got this error
Import Echo from Laravel-echo not defined
what should i do? nice work tho, really appreciate it