Replies: 1 comment
|
Hello Marek , I have the same issue , and I t hink we are not the only one , it starts to be a headache to import module with Electron ... I spoke to several person , and some of them think to stop programming with this framework .... it's so much work to try to adapt the code of a project made with an old version of electron and adapt it to recent versions. I post on stackoverflow yesterday , see here ........ maybe someone will help us :) |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
I am trying to run my Cordova react app on Mac using cordova-electron Cordova Electron and journeyapps/node-sqlcipher.
I am using these versions:
"cordova-electron": "^3.1.0",
"@journeyapps/sqlcipher": "^5.3.1"
When I want to access @journeyapps/sqlcipher using require I am getting the following error:
window.require('@journeyapps/sqlcipher').verbose();Error:
Uncaught (in promise) TypeError: window.require is not a function
When I use:
"cordova-electron": "^1.1.1",
"@journeyapps/sqlcipher": "^4.1.0"
everything is working okay.
I read this article: https://github.com/reZach/secure-electron-template/blob/master/docs/newtoelectron.md but I am not sure if this example can help solve my issue.
I also read this article about removing nodeIntegration completely: electron/electron#23506.
My current browserWindow settings:
Can someone help me with this issue or has working solution?
Thanks
All reactions