Closed cawa-93 closed 10 months ago
@TheAutomaTom, It's it issue for any extension, or for vue devtools only?
I assume it is the extension at fault. They sound like they fixed it 3 years ago, but I get the same error. I will open a ticket there and see if there is any response.
Still, are you using devtools, and if so, are you using our code on main
?
VUEJS3_DEVTOOLS
is deprecated, or changed, or something else. Chrome webstore return 404 🤷♂️.nhdogjmejiglipccpnnnanhbledajbpd
) and it resolve issue.forceDownload: true
. After forst run, I remove it and extension still works.
return installExtension('nhdogjmejiglipccpnnnanhbledajbpd', {
loadExtensionOptions: {
allowFileAccess: true,
forceDownload: true, // 👈
},
});
I still getting some errors in output, but extension seems works.
(node:1728) ExtensionLoadWarning: Warnings loading extension at C:\Users\kozac\AppData\Roaming\vite-electron-builder\extensions\nhdogjmejiglipccpnnnanhbledajbpd:
Manifest version 2 is deprecated, and support will be removed in 2023. See https://developer.chrome.com/blog/mv2-transition/ for more details.
(Use `electron --trace-warnings ...` to show where the warning was created)
[1728:0901/204141.351:ERROR:CONSOLE(2)] "Electron sandboxed_renderer.bundle.js script failed to run", source: node:electron/js2c/sandbox_bundle (2)
[1728:0901/204141.351:ERROR:CONSOLE(2)] "TypeError: object null is not iterable (cannot read property Symbol(Symbol.iterator))", source: node:electron/js2c/sandbox_bundle (2)
As alternative workaround you can use standalone vue devtools.
Hello, i have the same error
- Seems extension id for
VUEJS3_DEVTOOLS
is deprecated, or changed, or something else. Chrome webstore return 404 🤷♂️.- I set id for latest vue.js devtools (
nhdogjmejiglipccpnnnanhbledajbpd
) and it resolve issue.- I also have to add
forceDownload: true
. After forst run, I remove it and extension still works.return installExtension('nhdogjmejiglipccpnnnanhbledajbpd', { loadExtensionOptions: { allowFileAccess: true, forceDownload: true, // 👈 }, });
I still getting some errors in output, but extension seems works.
(node:1728) ExtensionLoadWarning: Warnings loading extension at C:\Users\kozac\AppData\Roaming\vite-electron-builder\extensions\nhdogjmejiglipccpnnnanhbledajbpd: Manifest version 2 is deprecated, and support will be removed in 2023. See https://developer.chrome.com/blog/mv2-transition/ for more details. (Use `electron --trace-warnings ...` to show where the warning was created) [1728:0901/204141.351:ERROR:CONSOLE(2)] "Electron sandboxed_renderer.bundle.js script failed to run", source: node:electron/js2c/sandbox_bundle (2) [1728:0901/204141.351:ERROR:CONSOLE(2)] "TypeError: object null is not iterable (cannot read property Symbol(Symbol.iterator))", source: node:electron/js2c/sandbox_bundle (2)
As alternative workaround you can use standalone vue devtools.
cawa-93 solution worked for me.
Here is my block:
const VUEJS3_DEVTOOLS = "nhdogjmejiglipccpnnnanhbledajbpd";
app.whenReady()
.then(() => import("electron-devtools-installer"))
.then((module) => {
const { default: installExtension } =
// @ts-expect-error Hotfix for https://github.com/cawa-93/vite-electron-builder/issues/915
typeof module.default === "function" ? module : (module.default as typeof module);
return installExtension(VUEJS3_DEVTOOLS, {
loadExtensionOptions: {
allowFileAccess: true,
},
});
})
.catch((e) => console.error("Failed install extension:", e));
Latest version is failing to install dev tools:
Seems like it's the package's probelm, using
"electron-devtools-installer": "^3.2.0"
I'm surprised we don't have a workaround outlined in the code. Do you think adding something like this would be helpful? I found this code on here somewhere: I'm sorry I forgot who wrote it, originally!
Originally posted by @TheAutomaTom in https://github.com/cawa-93/vite-electron-builder/discussions/906#discussioncomment-6887484