Comments (14)
That version seems to be having issues with electron 24.
Also that repo redirects CRX requests to the developers domain, instead of downloading directly from the chrome webstore. (see here https://github.com/xupea/electron-devtools-installer/blob/master/src/downloadChromeExtension.ts#L24) - I now realize this is required, because google doesn't let you download historical chrome versions, unfortunately
I published https://www.npmjs.com/package/electron-extension-installer to fix that (source code here)
import { installExtension, REACT_DEVELOPER_TOOLS } from "electron-extension-installer";
app.on("ready", async () => {
await installExtension(REACT_DEVELOPER_TOOLS, {
loadExtensionOptions: {
allowFileAccess: true,
},
});
});
from electron-devtools-installer.
@spamshaker hope this repo ease your pain: https://github.com/xupea/electron-devtools-installer
from electron-devtools-installer.
That version seems to be having issues with electron 24.
Also that repo redirects CRX requests to the developers domain, instead of downloading directly from the chrome webstore. (see here https://github.com/xupea/electron-devtools-installer/blob/master/src/downloadChromeExtension.ts#L24)- I now realize this is required, because google doesn't let you download historical chrome versions, unfortunatelyI published https://www.npmjs.com/package/electron-extension-installer to fix that (source code here)
import { installExtension, REACT_DEVELOPER_TOOLS } from "electron-extension-installer"; app.on("ready", async () => { await installExtension(REACT_DEVELOPER_TOOLS, { loadExtensionOptions: { allowFileAccess: true, }, }); });
I'm still getting errors while using yours, but this time they're different from OP. I'm using [email protected]
[1] [149237:0414/043621.834038:ERROR:CONSOLE(2)] "Electron sandboxed_renderer.bundle.js script failed to run", source: node:electron/js2c/sandbox_bundle (2)
[1] [149237:0414/043621.834072:ERROR:CONSOLE(2)] "TypeError: object null is not iterable (cannot read property Symbol(Symbol.iterator))", source: node:electron/js2c/sandbox_bundle (2)
[1] [149237:0414/043624.487576:ERROR:CONSOLE(2)] "Electron sandboxed_renderer.bundle.js script failed to run", source: node:electron/js2c/sandbox_bundle (2)
[1] [149237:0414/043624.487647:ERROR:CONSOLE(2)] "TypeError: object null is not iterable (cannot read property Symbol(Symbol.iterator))", source: node:electron/js2c/sandbox_bundle (2)
from electron-devtools-installer.
ok seems it is the Electron issue which differs from Chrome. So the extension won't work due to electron has not exposed chrome.scripting in the api
https://www.electronjs.org/docs/latest/api/extensions#supported-extensions-apis
maybe this should be mentioned in README that the https://github.com/facebook/react/tree/main/packages/react-devtools-extensions/chrome extension won't work
from electron-devtools-installer.
@unzld same here...
from electron-devtools-installer.
AFAICT that issue is internal, when calling load extension, and needs to fixed from electrons side.
from electron-devtools-installer.
Same for me (vite,vue3,ts,electron,VUEJS3_DEVTOOLS).
from electron-devtools-installer.
That version seems to be having issues with electron 24.
Also that repo redirects CRX requests to the developers domain, instead of downloading directly from the chrome webstore. (see here https://github.com/xupea/electron-devtools-installer/blob/master/src/downloadChromeExtension.ts#L24)- I now realize this is required, because google doesn't let you download historical chrome versions, unfortunatelyI published https://www.npmjs.com/package/electron-extension-installer to fix that (source code here)
import { installExtension, REACT_DEVELOPER_TOOLS } from "electron-extension-installer"; app.on("ready", async () => { await installExtension(REACT_DEVELOPER_TOOLS, { loadExtensionOptions: { allowFileAccess: true, }, }); });
this is the only solution that works for me, great work on the npm package
from electron-devtools-installer.
@MarshallOfSound any plans to update this?
from electron-devtools-installer.
I used electron-extension-installer but another promble occured, [39252:0415/173432.902:ERROR:CONSOLE(2)] "Electron renderer.bundle.js script failed to run", source: node:electron/js2c/renderer_init (2) , does any body have the same promble?
from electron-devtools-installer.
Related Issues (20)
- [Discussion]: Should I fix ` unrecognized manifest key` in this project? HOT 10
- Sourcemap errors when compiled with Webpack HOT 1
- Uncaught TypeError: Cannot read property 'forEach' of undefined at Object.injectIntoGlobalHook HOT 2
- TypeError: invalid options argument HOT 2
- REDUX_DEV_TOOLS Failed to fetch extension HOT 3
- `console.assert` errors thrown when dev tools are open an an interval is running
- Electron sandbox_bundle.js script failed to run (react-scripts >=5.0.0) HOT 14
- Version of Electron: 18.0.2 does not match required range >=1.2.1 for extension ljjemllljcmogpfapbkkighbhhppjdbg HOT 1
- How would one integrate this with Nativefier?
- Naming is not consistent, error prone
- Manifest version 2 is deprecated, and support will be removed in 2023 HOT 3
- "Extension server error: Operation failed: Permission denied", source: devtools://devtools/bundled/extensions/extensions.js HOT 3
- Failed to load REACT_DEVELOPER_TOOLS with "allowFileAccess: true". HOT 4
- . HOT 2
- Errors while installing extensions as shown in the README HOT 2
- Invalid header: Does not start with Cr24 HOT 3
- Uncaught Exception: Error: Cannot find module 'electron-devtools-installer' HOT 1
- Help
- REACT DEV TOOL need a reload to appear HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron-devtools-installer.