loader-runner icon indicating copy to clipboard operation
loader-runner copied to clipboard

'this.fs' does not work from inside the module

Open renanmt opened this issue 6 years ago • 0 comments

Hi, I'm running into this issue when trying to load a file from inside the loader: `ReferenceError: fs is not defined

  35 |     console.log(this.getDependencies());
  36 | 
> 37 |     fs.readFile(fileToSearch, 'utf8', (error, data) => {
     |     ^`

Error doesn't happen when running from webpack config. Only with loader-runner.

Could you help me out?

renanmt avatar Mar 01 '19 16:03 renanmt