Skip to content
Advertisement

Visual Studio Code cannot find module ‘typegram/callback’

im working on a telegram bot using the telegraf package. (version 4.1.1)

everything was working until i started using more modules from the telegraf package like Extra and mark-up.

I started getting this error:

JavaScript

‘typegram/callback’ is installed but is a typescript file,i don’t have typescript installed but i didn’t have issues before the error.

I reverted to my latest working build but the error hasn’t changed..

right now this is the only line of code:

JavaScript

Any tips?

Advertisement

Answer

Solved by downgrading to 4.1.0 version of the package.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement