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 upWeird error 8 object prototype may only be an object or null #634
Comments
This comment has been minimized.
This comment has been minimized.
|
This was caused by one of the packages that WebTorrent depends on writing this: var EventEmitter = require('events')instead of var EventEmitter = require('events').EventEmitterThe former only works in very recent versions of node. It's fixed now. You can fix the issue by updating node, or just reinstalling webtorrent. Cheers! |
This comment has been minimized.
This comment has been minimized.
|
Also, it's worth noting that WebTorrent only officially supports node v4 and v5. Since you're probably running 0.10 or 0.12, you should really update! |
This comment has been minimized.
This comment has been minimized.
|
Node 0.10 will be completely unsupported on October 2016. Node 0.12 will be on December 2016. This also means no security updates! |
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. |
I was trying out webtorrent and I got stuck on this error which I can't figure out.
Installing nodejs-legacy doesn't change this error.
Running the following code: