Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lesson4中遇到的 parent找不到的问题 #143

Open
Yuguantao opened this issue Sep 14, 2017 · 0 comments
Open

lesson4中遇到的 parent找不到的问题 #143

Yuguantao opened this issue Sep 14, 2017 · 0 comments

Comments

@Yuguantao
Copy link

代码和app.js一样 但是启动时 会报错

D:\练习\爬虫\node_modules\[email protected]@cheerio\lib\parse.js:69
    var oldParent = node.parent || node.root,

TypeError: Cannot read property 'parent' of undefined
    at Function.exports.update (D:\练习\爬虫\node_modules\[email protected]@ch
eerio\lib\parse.js:69:25)
    at module.exports (D:\练习\爬虫\node_modules\[email protected]@cheerio\lib
\parse.js:19:11)
    at Function.exports.load (D:\练习\爬虫\node_modules\[email protected]@chee
rio\lib\static.js:27:14)
    at D:\练习\爬虫\app1.js:31:21
    at Array.map (native)
    at D:\练习\爬虫\app1.js:28:20
    at EventProxy.all (D:\练习\爬虫\node_modules\[email protected]@eventproxy\li
b\eventproxy.js:407:20)
    at EventProxy.trigger (D:\练习\爬虫\node_modules\[email protected]@eventprox
y\lib\eventproxy.js:182:22)
    at D:\练习\爬虫\app1.js:48:13
    at Request.callback (D:\练习\爬虫\node_modules\[email protected]@superagent\
lib\node\index.js:679:14)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant