Thursday, March 2, 2017

Gulp --production causes Uncaught ReferenceError: f is not defined js console error

Application is a Laravel PHP application.

When using gulp the application works fine but when running gulp --production I get this js error Uncaught ReferenceError: f is not defined

The line in the js file is f.exports=e,a(e,o),e.prototype.name="websocket" - which is from the socket.io-client/socket.io.min.js file.

Looks like the js packer is corrupting something...

Any help?




via Andrew

Advertisement