I modified the comment.js code to allow to retrieve all video comments but it returning me this error:
const formattedComments = comments.map((comment) => {
^
TypeError: Cannot read properties of null (reading 'map')
at testApiReq (/Users/user/Desktop/tiktok-signature-master/examples/new_max_comments.js:97:38)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async main (/Users/user/Desktop/tiktok-signature-master/examples/new_max_comments.js:74:17)
Can you help me please?
I modified the comment.js code to allow to retrieve all video comments but it returning me this error: const formattedComments = comments.map((comment) => { ^
TypeError: Cannot read properties of null (reading 'map') at testApiReq (/Users/user/Desktop/tiktok-signature-master/examples/new_max_comments.js:97:38) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async main (/Users/user/Desktop/tiktok-signature-master/examples/new_max_comments.js:74:17) Can you help me please?