I\'m getting a \'fs.readFileSync is not a function\' in Chrome debugger after trying to call readFileSync();
I call it...
const fs = require(\'fs\')
fs cannot be used on the client, due to browsers restricting some javascript code.
If your code is being run on both the server and client, you can use:
if (Meteor.isClient) return;
to avoid the error. Otherwise, there should be another way to do what you're trying to accomplish, such as importing required JSON.