-
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
Invalid or incompatible cached data (cachedDataRejected) with Vue and Electron #63
Comments
Thank you for reporting the issue. I will look into it tonight. |
Hey @OsamaAbbas, did you manage to have a look into this? |
I did as promised. However, there are many moving parts here (electron, vue, the whole build system, your own implementation of bytenode protection.. etc). It will take some time to pin where the issue lie exactly.
If you want to protect your «browser javascript» code, try using NW.js instead of Electron. They have a tool called |
I'm also Vue + electron. Recently, I can't run after converting ts to JS |
I believe this is the issue, there must be something in the build process that changes the executable as it works if I run the application in the bundled directory. Also, I'm only trying to compile the background electron code, not the frontend Vue code. |
I'm having the same issue with the simple example from the README:
in the html file loaded into a BrowserWindow;
Then in the console: I am using electron 9.0.4 |
|
const { app, BrowserWindow } = require('electron') // 加载index.html文件 const bytenode = require("bytenode"); // 编译二进制文件 window.onload = () => { div.innerText = "哈哈" |
Compile with nodejs. The version of nodejs V8 engine is different from that of electron V8 engine. That's what happened. |
As explained by others, if you want to run @alexsnkr Have you figured out how to solve the issue? |
I have closed this issue due to inactivity. If you have an update or question, feel free to comment. |
comlplie terminal
then you coule get your exception
|
It's always better to open a new issue than replying in an old, closed one. The |
This is geneous. I use this script in my app's entry script to prepare compiled scripts if they are not available. |
Hi,
I am using Vuejs and Electron using this plugin: https://github.com/nklayman/vue-cli-plugin-electron-builder
I'm trying to protect the electron code using bytenode but I'm running onto the
Invalid or incompatible cached data
error when running the packaged application.I have created a basic repository to replicate the error https://github.com/alexsnkr/vue-electron-bytenode
If I run the builder to only generate the package directory I can run
electron .
from thebundled
directory and it runs using the .jsc file just fine, but when I package it for distribution it errors.I have gone through the issues from people that have ran into the same error, but I've had not luck fixing it.
Any help is appreciated,
Thanks.
The text was updated successfully, but these errors were encountered: