@romchik012

Как исправить ошибку модуля youtube-dl-exec?

Error [ERR_REQUIRE_ESM]: require() of ES Module E:\projectBot\Green Whatsit Successful Bot\node_modules\dargs\index.js from E:\projectBot\Green Whatsit Successful Bot\node_modules\youtube-dl-exec\src\index.js not supported.
Instead change the require of E:\projectBot\Green Whatsit Successful Bot\node_modules\dargs\index.js in E:\projectBot\Green Whatsit Successful Bot\node_modules\youtube-dl-exec\src\index.js to a dynamic import() which is available in all CommonJS modules.
    at Object.<anonymous> (E:\projectBot\Green Whatsit Successful Bot\node_modules\youtube-dl-exec\src\index.js:3:15)
    at Object.<anonymous> (E:\projectBot\Green Whatsit Successful Bot\bot.js:3010:19) {
  code: 'ERR_REQUIRE_ESM'
}
как исправить?
  • Вопрос задан
  • 45 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы