当通过NPM加载时,Meteor中的Webtorrent失败。不是通过CDN

时间:2016-05-16 18:53:19

标签: node.js meteor npm webtorrent

当我通过webtorrent导入import WebTorrent from 'webtorrent'包并尝试使用var client = new WebTorrent()设置包时,我得

tcp-pool.js:22 Uncaught TypeError: net.createServer is not a function

但是,当我使用$.ajax()加载CDN托管版本时,它可以运行。

这是clientside

1 个答案:

答案 0 :(得分:0)

流星问题一直存在。

https://github.com/feross/webtorrent/issues/804 这是描述。