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

Ошибка при запуске, старая версия в релизе. #2

Open
junkees opened this issue Feb 28, 2022 · 7 comments

Comments

@junkees
Copy link

junkees commented Feb 28, 2022

Привет, при запуске
ts-node .
появляется ошибка

[SETUP] Для получения прав администратора напишите боту: /setup token /home/danya/musicFromVK-0.1/node_modules/telegraf/lib/core/helpers/compact.js:11 return Object.fromEntries(compactEntries); ^ TypeError: Object.fromEntries is not a function at compactOptions (/home/danya/musicFromVK-0.1/node_modules/telegraf/lib/core/helpers/compact.js:11:19) at new ApiClient (/home/danya/musicFromVK-0.1/node_modules/telegraf/lib/core/network/client.js:208:45) at new Telegram (/home/danya/musicFromVK-0.1/node_modules/telegraf/lib/telegram.js:7:1) at new Telegraf (/home/danya/musicFromVK-0.1/node_modules/telegraf/lib/telegraf.js:44:25) at Object.<anonymous> (/home/danya/musicFromVK-0.1/bot.ts:10:19) at Module._compile (internal/modules/cjs/loader.js:778:30) at Module.m._compile (/usr/local/lib/node_modules/ts-node/src/index.ts:1459:23) at Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Object.require.extensions.(anonymous function) [as .ts] (/usr/local/lib/node_modules/ts-node/src/index.ts:1462:12) at Module.load (internal/modules/cjs/loader.js:653:32)

Инструкция к последнему релизу неактуальна, переменные api_id, api_hash не вынесены в config.type.ts

@Keller18306
Copy link
Owner

Можно скрином?

@junkees
Copy link
Author

junkees commented Feb 28, 2022

image

@junkees
Copy link
Author

junkees commented Feb 28, 2022

NodeJS - v10.19.0
Npm - 6.14.4

@Keller18306
Copy link
Owner

Обнови ноду

@junkees
Copy link
Author

junkees commented Mar 2, 2022

image

@Keller18306
Copy link
Owner

Keller18306 commented Mar 2, 2022

Переустанови модули

@WapStyle
Copy link

При установке все проблемы решаются просто
https://docs.nodesource.com/nsolid/4.7/docs#installation

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

3 participants