Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upWebpack+Electron+Webtorrent doesn't work #1597
Closed
Labels
Comments
This comment has been minimized.
This comment has been minimized.
|
I answered on your SO question :). You must run webtorrent in the Node.js process of your electron app for it to connect to TCP peers :) |
This comment has been minimized.
This comment has been minimized.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of WebTorrent?
0.103.1
What operating system and Node.js version?
OS X 10.14, Node 10.4.1
What browser and version? (if using WebTorrent in the browser)
Electron 3.1.4
What did you expect to happen?
Torrent can be added and downloaded into folder.
What actually happened?
Got error 'port is undefined' because it didn't automatically set 'torrentPort' because TCPPool was undefined.
Cause of issue is that 'browser' options are being applied for 'electron-renderer' webpack target causing limited functionality.