const qselector = require('qselector/dist/cjs');
console.log(qselector.$(body, 'p'));
/node_modules/qselector/dist/cjs/index.js:42
var root = document.querySelector(el || '');
^
ReferenceError: document is not defined
at core (/node_modules/qselector/dist/cjs/index.js:42:16)
at Object.$ (/node_modules/qselector/dist/cjs/index.js:54:42)
at Request._callback (/index.njs:85:31)
at Request.self.callback (/node_modules/request/request.js:185:22)
at Request.emit (events.js:182:13)
at Request.<anonymous> (/node_modules/request/request.js:1161:10)
at Request.emit (events.js:182:13)
at IncomingMessage.<anonymous> (/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:273:13)
at IncomingMessage.emit (events.js:187:15)
Hello - I run
and I get error
Q can you help?
Bruno