title: Using fs module in Meteor getting Uncaught TypeError _fs2.default.readFile is not a function
body: <p>Hi i am trying to test the fs module in my Meteor project. I am using Meteor 1.3 new es2015 modules. I'm trying to use nodes fs module to read a file. tried a few methods but seem to be getting this same error when i run myFunc() in browser.</p>
  
  <p>Uncaught TypeError: _fs2.default.readFile is not a function</p>
  
  <pre><code>import fs from 'fs'
  
  
  myFunc = function(){
  
      fs.readFile('input.txt', function(err, data){
          if(err)
              console.log("Error" + err)
  
          console.log("Data from input" + data)
      })
  
  }
  </code></pre>