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

Would work with MeteorJS and VueJS? #1352

Closed
luchux opened this issue Apr 15, 2018 · 2 comments
Closed

Would work with MeteorJS and VueJS? #1352

luchux opened this issue Apr 15, 2018 · 2 comments

Comments

@luchux
Copy link

@luchux luchux commented Apr 15, 2018

Hi people. I am having some issues I would like to fix and use webtorrent in a Meteor+Vue app.

One of the issues is

TypeError: dgram.createSocket is not a function
    at new RPC (modules.js?hash=f31459b63ab0a0971472f3b14b4514b5b243ba5b:91100)
    at RPC (modules.js?hash=f31459b63ab0a0971472f3b14b4514b5b243ba5b:91091)
    at new RPC (modules.js?hash=f31459b63ab0a0971472f3b14b4514b5b243ba5b:90718)
    at RPC (modules.js?hash=f31459b63ab0a0971472f3b14b4514b5b243ba5b:90711)
    at new DHT (modules.js?hash=f31459b63ab0a0971472f3b14b4514b5b243ba5b:88958)
    at new WebTorrent (modules.js?hash=f31459b63ab0a0971472f3b14b4514b5b243ba5b:47101)
    at VueComponent.created (Downloads.vue:56)
    at callHook (modules.js?hash=f31459b63ab0a0971472f3b14b4514b5b243ba5b:14431)
    at VueComponent.Vue._init (modules.js?hash=f31459b63ab0a0971472f3b14b4514b5b243ba5b:16096)
    at new VueComponent (modules.js?hash=f31459b63ab0a0971472f3b14b4514b5b243ba5b:16264)

Any clues why this should be happening? I am installing webtorrent from the npm package and loading it inside the component with
import WebTorrent from 'webtorrent'

If there is anything I can do to make it work, and contribute it back, will love to!

cheers.

@mike-hor

This comment has been minimized.

Copy link

@mike-hor mike-hor commented Apr 16, 2018

just direct reference
such as , in your index.html

<script src="./webtorrent.min.js"></script>
@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Apr 20, 2018

Hi @luchux, please see #1340

Duplicate #1340.

@feross feross closed this Apr 20, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jul 19, 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.