当我通过导入webtorrent
包import WebTorrent from 'webtorrent'
并尝试设置包时,var client = new WebTorrent()
我得到
tcp-pool.js:22 Uncaught TypeError: net.createServer is not a function
但是当我$.ajax()
用来加载CDN
托管版本时,它可以工作。
这两者兼而有之clientside
。
当我通过导入webtorrent
包import WebTorrent from 'webtorrent'
并尝试设置包时,var client = new WebTorrent()
我得到
tcp-pool.js:22 Uncaught TypeError: net.createServer is not a function
但是当我$.ajax()
用来加载CDN
托管版本时,它可以工作。
这两者兼而有之clientside
。