sunny-green
sunny-green3y ago

Error while trying to use apify

Im trying to use one of the actor to scrape instagram data but I keep getting this error "TypeError: Cannot read properties of undefined (reading 'join')', Im using typescript(node.js) as you can see in the img, anyone knows what might be the issue, thank you
No description
No description
2 Replies
Alexey Udovydchenko
As I remember listItems returning array, just check actual value, you will see
sunny-green
sunny-greenOP3y ago
Fixed: had to change from const { version } = (0, utils_1.dynamicRequire)('../package.json'); to const { version } = require('../package.json');, the actuall error was something like can not import ../package.json

Did you find this page helpful?