epsitec-sa / hazardous

Overload Electron path module for asar.unpacked support
68 stars 6 forks source link

Error: Can't resolve original-fs #3

Closed kiddailey closed 6 years ago

kiddailey commented 6 years ago

When including this package in my Electron project, I get an error trying to resolve "original-fs" on line 44:

const fs = process.versions.electron
     ? require ('original-fs')
     : require ('fs');

Looking at the package.json, I see that original-fs is not included as a dependency. All this package does is wrap a require("fs") in a module.exports, which seems unnecessary. I confirmed by modifying these lines to the following and it worked as expected.

const fs = require ('fs');
kiddailey commented 6 years ago

Went ahead and made a separate pull request for this