-
Notifications
You must be signed in to change notification settings - Fork 170
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
Error: Invalid or incompatible cached data (cachedDataRejected) #213
Comments
Getting the same error |
same issue here! it works fine when compiling tho. edit: my solutions was this: #63 |
I use electron-builder to build my app from macOs for windows and macOS and I use bytenode to compile main and preload source. |
Did you find a solution? We had this working since electron 12, 20, etc. upgrades and just upgraded Electron v30 and it stopped working... kind of a pain to redo our deployment pipelines into a Windows VM so looking to see if you got an easier solution. |
Can you provide a simple example that I can try using |
@luppiale I actually got it working by downgrading bytenode to 1.4.1. Since I'm on Electron 30 which runs on Node v20.11 I looked for the oldest commit that supported node v20 and it worked. Possible some change since then is causing this issue? Maybe intentional? Since I know in other threads you've mentioned that cross-compilation shouldn't be possible @OsamaAbbas |
Glad to hear that downgrading has worked for you. But still, can you please create a minimal example that reproduces the same issue? |
Same problem with bytenode 1.5.6 on Electron 30.0.2. Downgrading to 28.3.1 solving the problem. |
Sup, I'd like to report a problem that appeared in my project a month ago. I don't know what to do because I've never encountered this error before.
Here is full error code:
throw new Error('Invalid or incompatible cached data (cachedDataRejected)');
^
Error: Invalid or incompatible cached data (cachedDataRejected)
at Module._extensions. [as .jsc] ←[90m(C:\Users\User\Desktop\Вбив нитро\vbiv[4]buy_nitro_on_accounts\←[39mnode_modules\←[4mbytenode←[24m\lib\index.js:275:11←[90m)←[39m
←[90m at Module.load (node:internal/modules/cjs/loader:1133:32)←[39m
←[90m at Module._load (node:internal/modules/cjs/loader:972:12)←[39m
←[90m at Module.require (node:internal/modules/cjs/loader:1157:19)←[39m
←[90m at require (node:internal/modules/helpers:119:18)←[39m
at Object. ←[90m(C:\Users\User\Desktop\Вбив нитро\vbiv[4]buy_nitro_on_accounts\←[39mindex.js:3:5←[90m)←[39m
←[90m at Module._compile (node:internal/modules/cjs/loader:1275:14)←[39m
←[90m at Module._extensions..js (node:internal/modules/cjs/loader:1329:10)←[39m
←[90m at Module.load (node:internal/modules/cjs/loader:1133:32)←[39m
←[90m at Module._load (node:internal/modules/cjs/loader:972:12)←[39m
Node.js v19.9.0
The text was updated successfully, but these errors were encountered: