-
Notifications
You must be signed in to change notification settings - Fork 339
Closed
Description
Right now, trying to use reqwest from Node results in this error:
> var reqwest = require("reqwest")
ReferenceError: window is not defined
at ./node_modules/reqwest/reqwest.js:13:13
at win (./node_modules/reqwest/reqwest.js:8:72)
at Object.<anonymous> (./node_modules/reqwest/reqwest.js:11:2)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:349:32)
at Function.Module._load (module.js:305:12)
at Module.require (module.js:357:17)
at require (module.js:373:17)
at repl:1:15
Given that there are projects to provide the XHR interface in Node, making reqwest isomorphic should be as simple as abstracting out the implicit use of globals like window and document.
Metadata
Metadata
Assignees
Labels
No labels