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

Cannot read property 'cells' of undefined #13

Open
rakefs opened this issue Jan 20, 2023 · 0 comments
Open

Cannot read property 'cells' of undefined #13

rakefs opened this issue Jan 20, 2023 · 0 comments

Comments

@rakefs
Copy link

rakefs commented Jan 20, 2023

Hi Mike,

I have gone back and read your Hypermedia book (and two other newer ones). I am appreciative of your work. Thank you.

FYI, I have tried to run your code here and run into error. Not sure if it is node/npm/ejs version issue or something else...just letting you know. I realize this is old code but passing along the information anyways.

~/projects/Building-Hypermedia-APIs/nodejs/maze$ node app.js Express server listening on port 3000 scope` option is deprecated and will be removed in EJS 3
/home/rafs/projects/Building-Hypermedia-APIs/nodejs/maze/app.js:90
tot = Object.keys(doc.cells).length;
^

TypeError: Cannot read property 'cells' of undefined
at Vargs.callback (/home/rafs/projects/Building-Hypermedia-APIs/nodejs/maze/app.js:90:26)
at /home/rafs/projects/Building-Hypermedia-APIs/nodejs/maze/node_modules/cradle/lib/cradle/database/documents.js:45:18
at Request._onResponse [as _callback] (/home/rafs/projects/Building-Hypermedia-APIs/nodejs/maze/node_modules/cradle/lib/cradle.js:215:20)
at self.callback (/home/rafs/projects/Building-Hypermedia-APIs/nodejs/maze/node_modules/request/request.js:185:22)
at emitOne (events.js:115:13)
at Request.emit (events.js:210:7)
at Request.onRequestError (/home/rafs/projects/Building-Hypermedia-APIs/nodejs/maze/node_modules/request/request.js:877:8)
at emitOne (events.js:115:13)
at ClientRequest.emit (events.js:210:7)
at Socket.socketErrorListener (_http_client.js:401:9)
`

Regards,
Rafs

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