[cheerio] TypeError: Cannot read property ‘parent’ of undefined
A beautiful autumn day and my little app threw the error 🙂 var oldParent = node.parent || node.root, ^ TypeError: Cannot read property ‘parent’ of undefined at Function.exports.update (/home/kang/apps/nodecrawler/node_modules/cheerio/lib/parse.js:55:25) at module.exports (/home/kang/apps/nodecrawler/node_modules/cheerio/lib/parse.js:17:11) at Function.exports.load (/home/kang/apps/nodecrawler/node_modules/cheerio/lib/static.js:19:14) at Request._callback (/home/kang/apps/nodecrawler/app.js:46:29) at self.callback (/home/kang/apps/nodecrawler/node_modules/request/request.js:198:22) at emitOne (events.js:77:13) at Request.emit (events.js:169:7) at Request.onRequestError (/home/kang/apps/nodecrawler/node_modules/request/request.js:867:8) at emitOne (events.js:77:13) at ClientRequest.emit […]
[cheerio] TypeError: Cannot read property ‘parent’ of undefined Read More »