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

Uncaught TypeError: dgram.createSocket is not a function #1340

Closed
luchux opened this issue Mar 26, 2018 · 4 comments
Closed

Uncaught TypeError: dgram.createSocket is not a function #1340

luchux opened this issue Mar 26, 2018 · 4 comments

Comments

@luchux
Copy link

@luchux luchux commented Mar 26, 2018

I am getting this error when trying to call the consturctor.
var client = new WebTorrent();

any ideas?

cheers

@KayleePop

This comment has been minimized.

Copy link
Contributor

@KayleePop KayleePop commented Mar 26, 2018

You have to use browserify when using webtorrent in the browser.

Or use the minified build instead.

@luchux

This comment has been minimized.

Copy link
Author

@luchux luchux commented Mar 26, 2018

Im using Meteor+Vue, so can't really use another bundling tool. Shouldn't be possible to avoid browserify tool? Why is it needed?
Just asking to find a way to work around. Cheers

@KayleePop

This comment has been minimized.

@luchux luchux closed this Mar 30, 2018
@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Apr 18, 2018

It appears that Meteor does not support using the "browser" field to override package names, only local files. We use the former in WebTorrent.

Consider using the bundled version of WebTorrent which has already been browserified. You can find it in the repo -- webtorrent.min.js.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

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