Comments (11)
I am using Babel with webpack and __dirname was always resolving to '/'. The fix for me is to add to the webpack config:
node: { __dirname: true }
On official documentation
from electron-devtools-installer.
I get a similar issue (probably because on Mac, it's 7zip/index.js
instead of 7zip-lite/7z.exe
).
You just need to import the default exported value for this to happen:
const { default: installExtension } = require('electron-devtools-installer')
from electron-devtools-installer.
@CzBuCHi are you using webpack or any bundler that is including electron-devtools-installer
in the bundle? That was my issue, as __dirname
resolves to the bundle location, instead of the source of this module.
If you use webpack, check out webpack-node-externals.
from electron-devtools-installer.
@killerspaz yea ... i was using webpack for mian and renderer, but as my pet project is dont have enouch time for it right now ... :(
im thining use webpack only for renderer and main compile with tsc only ...
from electron-devtools-installer.
Setting node: { __dirname: true } in my project has a lot of other issues and this is not possible. Any other solutions?
from electron-devtools-installer.
This issue hasn't been resolved in over a year now and I can't use the node: { __dirname: true }
"fix". Any update on this one @MarshallOfSound?
from electron-devtools-installer.
I don't have time to look into every issue and this one is a weboack config specific issue with a known workaround. If someone wants to fix it good on them... But I don't have the time to
from electron-devtools-installer.
use webpack-node-externals can resolve this issue
from electron-devtools-installer.
Possible fix, based on not using the buggy 7-zip package at all: #92
from electron-devtools-installer.
This issue might have been related to electron/electron#8206
from electron-devtools-installer.
🎉 This issue has been resolved in version 3.0.0 🎉
The release is available on:
Your semantic-release bot 📦🚀
from electron-devtools-installer.
Related Issues (20)
- 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
- [ReactDevTools] components are not loaded HOT 14
- 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 9
- Should be updated to conform to proper ESM package
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.