You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue isn't that the library is not browserify compatible (indeed it is compatible). The issue is that the BCSocket isn't isomorphic/universal (i.e. there are two different implementations of BCSocket: one of the server and one for clients).
my main.js just import the library:
var BCSocket = require('browserchannel').BCSocket;
I compile file with gulpfile below
When I open file in browser I achieve an error
Uncaught TypeError: fs.statSync is not a function
.What may cause the problem?
The text was updated successfully, but these errors were encountered: