opened
camhart
username_0
Attempting to use e3kit-node with electron v8.3.0 in the background process (non renderer process, so it acts like nodejs).  I get this error when I attempt to initialize eThree.

```
TypeError: fetch is not a function
    at eval (webpack:///./node_modules/fetch-ponyfill/fetch-node.js?:13:12)
    at Connection.send (webpack:///./node_modules/virgil-sdk/dist/virgil-sdk.es.js?:912:16)
    at Connection.post (webpack:///./node_modules/virgil-sdk/dist/virgil-sdk.es.js?:906:21)
    at CardClient.eval (webpack:///./node_modules/virgil-sdk/dist/virgil-sdk.es.js?:1003:52)
    at Generator.next (<anonymous>)
    at eval (webpack:///./node_modules/virgil-sdk/dist/virgil-sdk.es.js?:587:71)
    at new Promise (<anonymous>)
    at __awaiter (webpack:///./node_modules/virgil-sdk/dist/virgil-sdk.es.js?:583:12)
    at CardClient.searchCards (webpack:///./node_modules/virgil-sdk/dist/virgil-sdk.es.js?:1002:16)
    at CardManager.eval (webpack:///./node_modules/virgil-sdk/dist/virgil-sdk.es.js?:1388:157)
```
Electron v8.3.0, TypeError: fetch is not a function
issue
created
camhart
username_0
Appears to be a bug with fetch-ponyfill... see https://github.com/qubyte/fetch-ponyfill/pull/239/files
comment
created
camhart
username_0
Please update package 'fetch-ponyfill' to version v6.1.1 and this will be fixed.  It's due to an issue combining webpack w/ nodejs (which electron does).
comment
created
camhart
username_0
PR is up: https://github.com/VirgilSecurity/virgil-sdk-javascript/pull/74
comment
created
xlwknx
username_1
Hello @username_0 !
I've updated fetch-ponyfill to v6.1.1 in virgil-sdk [v6.1.2 ](https://www.npmjs.com/package/virgil-sdk/v/6.1.2).
e3kit-node should grab this version in `npm install` process if you delete node_modules and lock files.
Please report your results to make sure is everything ok!
comment
created
camhart
username_0
Thanks for this!  I need a couple days to verify.  Some other stuff came up.
comment
created
camhart
username_0
Fixed!  Thanks.
comment
closed
camhart
username_0
issue