Open NoahAndrews opened 4 years ago
Hey, thanks for reporting this issue! This library is intended as cookie handler for node-fetch
. Since electron is kind of a web browser on its own, it can handle cookies. So why do you want to use this library?
We need to make some HTTP calls from the Node side in order to circumvent the same origin policy.
Do you manually supply file extensions in your electron webpack project? If so, make sure to add mjs
there: https://github.com/graphql/graphql-js/issues/1272#issuecomment-377384574
I don't, but it looks like electron-webpack
does. I've opened https://github.com/electron-userland/electron-webpack/issues/398.
Build log from
electron-webpack
:I believe the issue is that node's modules don't use ES6 imports, which causes a problem because of the
.mjs
extension used by this library, but I'm no expert on how JS modules work.