window is not defined
Closed this issue · 1 comments
thany commented
Trying to use this with Node 8.7.
The moment I try to anything with reddit.js, I get an error:
ReferenceError: window is not defined
My node script contains literally only this:
const reddit = require("reddit.js");
And it crashes on that line, obviously.
sahilm commented
Thanks for trying out reddit.js. Unfortunately it cannot be used in node.js. It's only meant to be used inside a browser.