jadjoubran / laravel5-angular-material-starter

Get started with Laravel 5.3 and AngularJS (material)
https://laravel-angular.readme.io/
MIT License
1.66k stars 401 forks source link

Uncaught ReferenceError: module is not defined while trying to import laravel-echo #494

Closed cran208 closed 7 years ago

cran208 commented 7 years ago

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?

jadjoubran commented 7 years ago

Hi @cran208 There isn't any module setup in this repository which is why your import statement is not working