alex8088 / electron-vite

Next generation Electron build tooling based on Vite 新一代 Electron 开发构建工具,支持源代码保护
https://electron-vite.org
MIT License
3.57k stars 153 forks source link

Invailed or incompatible cached data (cachedDataRejected) #586

Closed alicestoneprod closed 3 months ago

alicestoneprod commented 3 months ago

Describe the bug

image import { defineConfig, externalizeDepsPlugin, bytecodePlugin } from "electron-vite"

main: { plugins: [externalizeDepsPlugin(), bytecodePlugin()], },

node 20.10.0

Electron-Vite Version

^2.3.0

Electron Version

^31.0.2",

Vite Version

^5.3.1

Validations

alex8088 commented 3 months ago

https://electron-vite.org/guide/troubleshooting#a-javascript-error-occurred-in-the-main-process-error-invaild-or-incompatible-cached-data-cacheddatarejected

alicestoneprod commented 3 months ago

I changed electron version, also changed node.js version and it got good compile.