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

Telegraf v5 can't be installed #1982

Open
ibrohimislam opened this issue Apr 22, 2024 · 0 comments
Open

Telegraf v5 can't be installed #1982

ibrohimislam opened this issue Apr 22, 2024 · 0 comments

Comments

@ibrohimislam
Copy link

Context

I can't install the telegraf v5 from github using npm

  • Telegraf.js Version: 5.0.0-dev
  • Typescript Version: 5.3.3
  • Node.js Version: v18.19.0 and v21.6.1
  • Operating System: ubuntu 22.04 on wsl2

Minimal Example Code Reproducing the Issue

npm install "https://github.com/telegraf/telegraf#v5"

Expected Behavior

the package installed

Current Behavior

the package prepare error

Error Message and Logs

npm ERR! code 2
npm ERR! git dep preparation failed
npm ERR! command /home/ibrohim/.nvm/versions/node/v21.6.1/bin/node /home/ibrohim/.nvm/versions/node/v21.6.1/lib/node_modules/npm/bin/npm-cli.js install --force --cache=/home/ibrohim/.npm --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run
npm ERR! > [email protected] prepare
npm ERR! > npm run --silent build
npm ERR!
npm ERR! src/composer.ts(514,21): error TS18048: 'ctx.message' is possibly 'undefined'.
npm ERR! src/composer.ts(514,33): error TS2339: Property 'entities' does not exist on type 'New & NonChannel & Message'.
npm ERR!   Property 'entities' does not exist on type 'New & NonChannel & ChannelChatCreatedMessage'.
npm ERR! src/composer.ts(517,29): error TS18048: 'ctx.message' is possibly 'undefined'.
npm ERR! src/composer.ts(517,41): error TS2339: Property 'text' does not exist on type 'New & NonChannel & Message'.
npm ERR!   Property 'text' does not exist on type 'New & NonChannel & ChannelChatCreatedMessage'.
npm ERR! npm WARN using --force Recommended protections disabled.
npm ERR! npm ERR! code 2
npm ERR! npm ERR! path /home/ibrohim/.npm/_cacache/tmp/git-cloneXXXXXXCIFsEn
npm ERR! npm ERR! command failed
npm ERR! npm ERR! command sh -c npm run --silent build
npm ERR!
npm ERR! npm ERR! A complete log of this run can be found in: /home/ibrohim/.npm/_logs/2024-04-22T10_41_22_774Z-debug-0.log

npm ERR! A complete log of this run can be found in: /home/ibrohim/.npm/_logs/2024-04-22T10_41_17_739Z-debug-0.log
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

1 participant