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 upbrowserify issue #529
browserify issue #529
Comments
This comment has been minimized.
This comment has been minimized.
|
That's something, at least for now, clients cannot do. Would be cool to create an http server from your browser window, but not yet :( Just like the direct file system access, it's still not available. And who knows if it will ever be. |
This comment has been minimized.
This comment has been minimized.
|
@chiggachiggayeah Just to make sure, you got this error when calling |
This comment has been minimized.
This comment has been minimized.
|
Hey sorry for just getting back. The error happens when I try to browserify webtorrent, which, from the repo, I thought was supposed to be possible. Maybe it's not anymore, or I just misunderstood. Anyhow, I get an error in the web console complaining that net.createServer isn't a function in this bit of code:
the code that I've browserified is here:
|
This comment has been minimized.
This comment has been minimized.
|
Yes, browserifying webtorrent should be possible, and works for me. It sounds like your browserify is misbehaving because it's packaging Are you sure you're not using webpack or something like that? What version of browserify and webtorrent are you using? |
This comment has been minimized.
This comment has been minimized.
|
Now that I think about it, I recall there was a browserify issue with resolving the Please make sure you're running the latest version.
If you have browserify installed globally, beware that that might get used if your PATH is not set correctly in your scripts, so update that too, like this:
|
This comment has been minimized.
This comment has been minimized.
|
Yep. It seems to be working after an uninstall and then installing the latest browserify version. Sorry about that. Should've tried that myself instead of bothering you guys. Thanks though. |
This comment has been minimized.
This comment has been minimized.
|
Cool, thanks for letting us know that you got it working! |
This comment has been minimized.
This comment has been minimized.
|
This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue. |
when I browserify the basic example from the webtorrent.io I get the error: net.createServer is not a function. It seems to make sense, not being able to make a server on the client, but I thought I'd bring it up since it seems that we are supposed to be able to browserify the npm webtorrent module. Just using the CDN for now.