How to use File System (fs)?

I am trying to use the fs module in Meteor. But I always getting an error after I adding it to package:

meteor npm install fs --save

In my React Component I am doing this:

import fs from 'fs';

Anyone who already used the default modules from node?

1 Like

I answer my question myself…of course you are not able to use fs on client-side. So stupid from my side.

2 Likes