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 upWebtorrent in Meteor fails when loaded via NPM. Not via CDN #804
Labels
Comments
This comment has been minimized.
This comment has been minimized.
|
I did some digging and it looks like Meteor doesn't support the "browser" field in I left a comment on the relevant Meteor issue for you. meteor/meteor#6890 You can follow that issue, or share more information there to help the Meteor devs prioritize the issue. |
This comment has been minimized.
This comment has been minimized.
|
@FinnFrotscher seems like the issue hasn't been fixed yet on Meteor side. Have you found a temporary solution? Did you keep it via CDN? Thanks |
This comment has been minimized.
This comment has been minimized.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.

When I import the
webtorrentpackage viaimport WebTorrent from 'webtorrent'and try to set up the package withvar client = new WebTorrent()I getBut when I use
$.ajax()to load theCDNhosted version it works.This is both
clientsiderunningMeteor 1.3.Add
When I use
meteor npmandimport, and thenconsole.log(webtorrent)I get the function back and i also have the required files.index.jsstarts with:but i cant use it.