Skip to content

Hardcoded package.json reference #8

@AlexanderAllen

Description

@AlexanderAllen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions