skick1234 / DisTube

A powerful Discord.js module for simplifying music commands and effortless playback of various sources with integrated audio filters.
https://distube.js.org
MIT License
421 stars 95 forks source link

Issues with using the module. #200

Closed HarleyDevelopment closed 2 years ago

HarleyDevelopment commented 2 years ago

Please describe your problem in as much detail as possible:

I am trying to run the bot, it was working yesterday. I now updated my modules by running the simple npm i and it has completely stopped working and is now throwing errors. I have tried everything to fix this, and nothing is changing the error.

Further information:

The error is as follows:

C:\Users\hdpc2\Downloads\Multi Bot Personal - H4r1ey (1)\Multi Bot - Updated\node_modules\@discordjs\voice\dist\index.js:1
import path from "path";
^^^^^^

SyntaxError: Cannot use import statement outside a module
←[90m    at Object.compileFunction (node:vm:352:18)←[39m
←[90m    at wrapSafe (node:internal/modules/cjs/loader:1031:15)←[39m
←[90m    at Module._compile (node:internal/modules/cjs/loader:1065:27)←[39m
←[90m    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)←[39m
←[90m    at Module.load (node:internal/modules/cjs/loader:981:32)←[39m
←[90m    at Function.Module._load (node:internal/modules/cjs/loader:822:12)←[39m
←[90m    at Module.require (node:internal/modules/cjs/loader:1005:19)←[39m
←[90m    at require (node:internal/modules/cjs/helpers:94:18)←[39m
    at Object.<anonymous> (C:\Users\hdpc2\Downloads\Multi Bot Personal - H4r1ey (1)\Multi Bot - Updated\node_modules\←[4mdistube←[24m\dist\core\voice\DisTubeVoice.js:6:17)
←[90m    at Module._compile (node:internal/modules/cjs/loader:1101:14)←[39m

C:\Users\hdpc2\Downloads\Multi Bot Personal - H4r1ey (1)\Multi Bot - Updated>
HarleyDevelopment commented 2 years ago

I have also tried

const path = require('path');`

which also didn't work.

Jarad999 commented 2 years ago

I vouch for this. But my issue is that it just crashes with no error logging.

This is @HarleyDevelopment's Music bot

image

otonierusv commented 2 years ago

@HarleyDevelopment Not related to DisTube, ask in Discord.JS support for @discordjs/voice. Also is a known issue, downgrade to @discordjs/voice@0.6.0

Jarad999 commented 2 years ago

@JeremyBorja look at line at Object. (C:\Users\hdpc2\Downloads\Multi Bot Personal - H4r1ey (1)\Multi Bot - Updated\node_modules\←[4mdistube←[24m\dist\core\voice\DisTubeVoice.js:6:17)

Are you sure its still a discordjs/voice issue?

otonierusv commented 2 years ago

@JeremyBorja look at line at Object. (C:\Users\hdpc2\Downloads\Multi Bot Personal - H4r1ey (1)\Multi Bot - Updated\node_modules\←[4mdistube←[24m\dist\core\voice\DisTubeVoice.js:6:17)

Are you sure its still a discordjs/voice issue?

It is, cause DisTube is using @discordjs/voice as a requirement

aeongdesu commented 2 years ago

https://github.com/discordjs/voice/issues/231 (not related to distube?)

iCrawl commented 2 years ago

This should be fixed in version 0.7.4 0.7.5 👍

Let me know if it isn't 😅

skick1234 commented 2 years ago

Not related to DisTube