Note: for support questions, please use one of these channels: stackoverflow or slack
Note: the best way to get a quick answer is to provide a failing test case, by forking the following fiddle for example.
This is the same issue when I require('socket.io').
npm fs is a security holder package: https://www.npmjs.com/package/fs
Recommend socket.io move to file-system or another library instead.
Are you using webpack?
In your Webpack Config, add: node: { fs: 'empty' }.
npm i [email protected]
Hi! Is there something we can fix? Could you provide more context please?
@darrachequesne anything you can do to make it so when running webpack, we don't need node: { fs: 'empty' } ?
@Dwood15 it seems { fs: 'empty' }
was not needed in our webpack example, could you please check?
Most helpful comment
Are you using webpack?
In your Webpack Config, add: node: { fs: 'empty' }.