-
Notifications
You must be signed in to change notification settings - Fork 149
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
Issue using dugite with electron and webpack #196
Comments
If you have this issue when creating the
|
@joecorkerton are you able to share an example webpack config for how you're doing the bundling? We do this with Desktop, but it'd be nice to have an agnostic demo project to help with troubleshooting, as this seems different to what we uncovered with bundling in #96. |
@shiftkey I've created a new repo with the minimum setup required to produce the error. It can be found here https://github.com/joecorkerton/dugite-test |
@kittaakos I can do that and I no longer get an error while bundling, but then dugite no longer works:
|
I got the very same result. I am positive, it is possible to use |
I have created a PR against your setup: https://github.com/joecorkerton/dugite-test/pull/1
I could take another look tomorrow. There must be something with the bundling process. By the way, you can also check out this dugite-electron boilerplate: https://github.com/kittaakos/electron-boilerplate |
@kittaakos I have gotten a bit further now. If I set the target in the webpack.config to However now I also get the same issue with the git path ( I pushed up a new commit which has most of the changes in your PR |
I still don't fully understand the issue, but when I create a new electron app with https://github.com/electron-userland/electron-webpack-quick-start it seems to work, so I will go with that for now. Thanks for your help |
I am trying to test out dugite with a fresh electron project and I'm having problems getting it running. I'm using webpack to bundle the js, which is producing the following errors:
Module not found: Error: Can't resolve 'child_process' in '../node_modules/dugite/build/lib'
Module not found: Error: Can't resolve 'fs' in '../node_modules/dugite/build/lib'
I tried setting the LOCAL_GIT_DIRECTORY environment variable but that did not resolve the issue.
Any suggestions to get it working?
The text was updated successfully, but these errors were encountered: