TypeError: Cannot read property 'length' of undefined


#1

I’m creating a node.js app and implementing the scheduler app. I’m following this walkthrough: https://dhtmlx.com/blog/using-dhtmlxscheduler-with-node-js/

When I navigate to the /data page, it says cannot read property length of undefined. I went to the github page and downloaded app.js word for word.

Thanks in advance.


#2

I was using MongoDB Atlas as my db. I got this error resolved by switching my connection string from the Short SRV string to standard made it work


#3

If anybody else encounters the same issue