i didn't set type: module in package.json and didn't have fetch installed and imported 😅
ahh im probs on a newer node version globally, oops! I’ll specify package type and install node-fetch or something in the morning so its smoother for others