Skip to content
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

Tries to import Electron #407

Closed
denizdogan opened this issue Nov 7, 2017 · 1 comment
Closed

Tries to import Electron #407

denizdogan opened this issue Nov 7, 2017 · 1 comment

Comments

@denizdogan
Copy link

denizdogan commented Nov 7, 2017

This might be because I'm using Webpack with Babel and Flow and what-not, but I can't use this library because of the Electron support. It seems to try to import Electron even though I don't have Electron in my environment and I pass {useElectronNet: false}.

ERROR in ./node_modules/got/index.js
Module not found: Error: Can't resolve 'electron' in '/Users/deniz/Code/editor/node_modules/got'
@ ./node_modules/got/index.js 45:20-39
@ ./src/actions/grid.js
@ ./src/components/LoadingScreen.jsx
@ ./src/components/App.jsx
@ ./src/index.js
@ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server react-hot-loader/patch ./src/index.js
@sindresorhus
Copy link
Owner

Duplicate of #345

@sindresorhus sindresorhus marked this as a duplicate of #345 Nov 7, 2017
Repository owner locked and limited conversation to collaborators Nov 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants