Giter Site home page Giter Site logo

Comments (11)

psychobolt avatar psychobolt commented on July 30, 2024 2

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.

justin-calleja avatar justin-calleja commented on July 30, 2024

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.

 avatar commented on July 30, 2024

@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.

CzBuCHi avatar CzBuCHi commented on July 30, 2024

@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.

derek126 avatar derek126 commented on July 30, 2024

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.

 avatar commented on July 30, 2024

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.

MarshallOfSound avatar MarshallOfSound commented on July 30, 2024

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.

starriv avatar starriv commented on July 30, 2024

use webpack-node-externals can resolve this issue

from electron-devtools-installer.

motin avatar motin commented on July 30, 2024

Possible fix, based on not using the buggy 7-zip package at all: #92

from electron-devtools-installer.

jdoubleu avatar jdoubleu commented on July 30, 2024

This issue might have been related to electron/electron#8206

from electron-devtools-installer.

MarshallOfSound avatar MarshallOfSound commented on July 30, 2024

🎉 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.