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

Error: Invalid or incompatible cached data (cachedDataRejected) #213

Open
lojoke opened this issue Apr 17, 2023 · 8 comments
Open

Error: Invalid or incompatible cached data (cachedDataRejected) #213

lojoke opened this issue Apr 17, 2023 · 8 comments

Comments

@lojoke
Copy link

lojoke commented Apr 17, 2023

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

@zedd3v
Copy link

zedd3v commented May 2, 2023

Getting the same error

@janisblaus
Copy link

janisblaus commented Jul 20, 2023

same issue here! it works fine when compiling tho.

edit: my solutions was this: #63

@luppiale
Copy link

luppiale commented Jan 5, 2024

I use electron-builder to build my app from macOs for windows and macOS and I use bytenode to compile main and preload source.
Starting with electron v26 I get the same error on windows machine

@felipe-linares
Copy link

I use electron-builder to build my app from macOs for windows and macOS and I use bytenode to compile main and preload source. Starting with electron v26 I get the same error on windows machine

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.

@OsamaAbbas
Copy link
Collaborator

Can you provide a simple example that I can try using npm install and npm start?

@felipe-linares
Copy link

@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

@OsamaAbbas
Copy link
Collaborator

OsamaAbbas commented May 7, 2024

Glad to hear that downgrading has worked for you.

But still, can you please create a minimal example that reproduces the same issue?

@thanhle7
Copy link

Same problem with bytenode 1.5.6 on Electron 30.0.2. Downgrading to 28.3.1 solving the problem.

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

7 participants