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

Webpack+Electron+Webtorrent doesn't work #1597

Closed
elyulka opened this issue Mar 19, 2019 · 2 comments
Closed

Webpack+Electron+Webtorrent doesn't work #1597

elyulka opened this issue Mar 19, 2019 · 2 comments
Labels

Comments

@elyulka
Copy link

@elyulka elyulka commented Mar 19, 2019

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.

@DiegoRBaquero

This comment has been minimized.

Copy link
Member

@DiegoRBaquero DiegoRBaquero commented Mar 19, 2019

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

@stale

This comment has been minimized.

Copy link

@stale stale bot commented Jun 17, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label Jun 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.