node.flow icon indicating copy to clipboard operation
node.flow copied to clipboard

Hardcoded package.json reference

Open AlexanderAllen opened this issue 6 years ago • 0 comments

This package makes an assumption about the location of package.json in lib/flow.js, resulting in an error:

Error: ENOENT: no such file or directory, open '//../package.json'
    at Object.openSync (fs.js:447:3)
    at Object.func (electron/js2c/asar.js:155:31)
    at Object.func [as openSync] (electron/js2c/asar.js:155:31)
    at Object.readFileSync (fs.js:349:35)
    at Object.fs.readFileSync (electron/js2c/asar.js:597:40)
    at Object.fs.readFileSync (electron/js2c/asar.js:597:40)
    at Object.eval (webpack-internal:///./node_modules/node.flow/lib/flow.js:442:31)
    at eval (webpack-internal:///./node_modules/node.flow/lib/flow.js:451:30)

I'm trying to include this module into my Electron application, which is compiled via Webpack. My bundled code is output to

./src/main/main.js

But this package would expect my Electron main process bundled file to be located on

./src/main.js

instead.

AlexanderAllen avatar Oct 28 '19 02:10 AlexanderAllen