Closed cran208 closed 7 years ago
I'm submitting a ...
[ ] support request
Provide information & explanation I started a laravel-echo-server on my server and included laravel-echo into gulpfile.
As what I learned from laravel documentation: Import Echo from 'laravel-echo'; is all I need to do.
Import Echo from 'laravel-echo';
It works fine since I can console.log(Echo) in the browser except there is an "Uncaught ReferenceError: module is not defined" in console.
I looked up the echo.js file and found module.exports = Echo, which cause the error.
module.exports = Echo
Am I doing anything wrong?
Hi @cran208 There isn't any module setup in this repository which is why your import statement is not working
I'm submitting a ...
[ ] support request
Provide information & explanation I started a laravel-echo-server on my server and included laravel-echo into gulpfile.
As what I learned from laravel documentation:
Import Echo from 'laravel-echo';
is all I need to do.It works fine since I can console.log(Echo) in the browser except there is an "Uncaught ReferenceError: module is not defined" in console.
I looked up the echo.js file and found
module.exports = Echo
, which cause the error.Am I doing anything wrong?