absent-sapphire•3y 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


2 Replies
As I remember
listItems returning array, just check actual value, you will seeabsent-sapphireOP•3y 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