junhoyeo / threads-api

Unofficial, Reverse-Engineered Node.js/TypeScript client for Meta's Threads. Web UI Included.
https://threads.junho.io
MIT License
1.58k stars 134 forks source link

module error #172

Closed nstarrrr closed 11 months ago

nstarrrr commented 11 months ago

Error: Cannot find module 'dotenv/config' Require stack:

MsLolita commented 11 months ago

npm install dotenv

import 'dotenv/config'; import './index.js';

junhoyeo commented 11 months ago

Hey @nastarrr! Just deployed https://github.com/junhoyeo/threads-api/releases/tag/v1.4.5, which has this issue fixed. Can you update to the latest version? 🚀 Installing dotenv to your project manually, like in @MsLolita's solution, will work for previous versions. 👍