Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hardcoded package.json reference #8

Open
AlexanderAllen opened this issue Oct 28, 2019 · 0 comments
Open

Hardcoded package.json reference #8

AlexanderAllen opened this issue Oct 28, 2019 · 0 comments

Comments

@AlexanderAllen
Copy link

AlexanderAllen commented Oct 28, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant