Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue while running dev mode #561

Open
oooozzzzz opened this issue Aug 19, 2024 · 1 comment
Open

Issue while running dev mode #561

oooozzzzz opened this issue Aug 19, 2024 · 1 comment

Comments

@oooozzzzz
Copy link

Hello!. Thank you for your template. When I try to run bot in dev mode, I get error "Invalid type: Expected "polling" | "webhook" but received undefined". I was launching the bot strictly following the instructions in reademe.

@musme
Copy link

musme commented Sep 20, 2024

@oooozzzzz ,I think you should to switch your node to 21.7 version because a process.loadEnvFile() method was introduced at 21.7. Take a look at https://nodejs.org/api/process.html#processloadenvfilepath

I just switched to dotenv package instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants