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

Dashboard update appears to have broke some commands #736

Closed
ghost opened this issue Aug 2, 2022 · 2 comments
Closed

Dashboard update appears to have broke some commands #736

ghost opened this issue Aug 2, 2022 · 2 comments

Comments

@ghost
Copy link

ghost commented Aug 2, 2022

Yo so looks like the new dashboard update has broken some commands. By the looks of it it is now failing to find the config.json due to invalid paths in a large amount of files.

> master-bot@1.0.0 dev
> npm run build && npm run copy-scripts && npm run start


> master-bot@1.0.0 build
> tsc

[96msrc/commands/gifs/amongus.ts�[0m:[93m9�[0m:[93m23�[0m - [91merror�[0m�[90m TS2307: [0mCannot find module '../../config.json' or its corresponding type declarations.

[7m9�[0m import * as data from '../../config.json';
[7m [0m [91m                      ~~~~~~~~~~~~~~~~~~~[0m

[96msrc/commands/gifs/anime.ts�[0m:[93m9�[0m:[93m23�[0m - [91merror�[0m�[90m TS2307: [0mCannot find module '../../config.json' or its corresponding type declarations.

[7m9�[0m import * as data from '../../config.json';
[7m [0m [91m                      ~~~~~~~~~~~~~~~~~~~[0m

[96msrc/commands/gifs/baka.ts�[0m:[93m9�[0m:[93m23�[0m - [91merror�[0m�[90m TS2307: [0mCannot find module '../../config.json' or its corresponding type declarations.

[7m9�[0m import * as data from '../../config.json';
[7m [0m [91m                      ~~~~~~~~~~~~~~~~~~~[0m

[96msrc/commands/gifs/cat.ts�[0m:[93m9�[0m:[93m23�[0m - [91merror�[0m�[90m TS2307: [0mCannot find module '../../config.json' or its corresponding type declarations.

[7m9�[0m import * as data from '../../config.json';
[7m [0m [91m                      ~~~~~~~~~~~~~~~~~~~[0m

[96msrc/commands/gifs/doggo.ts�[0m:[93m9�[0m:[93m23�[0m - [91merror�[0m�[90m TS2307: [0mCannot find module '../../config.json' or its corresponding type declarations.

[7m9�[0m import * as data from '../../config.json';
[7m [0m [91m                      ~~~~~~~~~~~~~~~~~~~[0m

[96msrc/commands/gifs/gif.ts�[0m:[93m9�[0m:[93m23�[0m - [91merror�[0m�[90m TS2307: [0mCannot find module '../../config.json' or its corresponding type declarations.

[7m9�[0m import * as data from '../../config.json';
[7m [0m [91m                      ~~~~~~~~~~~~~~~~~~~[0m

[96msrc/commands/gifs/gintama.ts�[0m:[93m9�[0m:[93m23�[0m - [91merror�[0m�[90m TS2307: [0mCannot find module '../../config.json' or its corresponding type declarations.

[7m9�[0m import * as data from '../../config.json';
[7m [0m [91m                      ~~~~~~~~~~~~~~~~~~~[0m

[96msrc/commands/gifs/hug.ts�[0m:[93m9�[0m:[93m23�[0m - [91merror�[0m�[90m TS2307: [0mCannot find module '../../config.json' or its corresponding type declarations.

[7m9�[0m import * as data from '../../config.json';
[7m [0m [91m                      ~~~~~~~~~~~~~~~~~~~[0m

[96msrc/commands/gifs/jojo.ts�[0m:[93m9�[0m:[93m23�[0m - [91merror�[0m�[90m TS2307: [0mCannot find module '../../config.json' or its corresponding type declarations.

[7m9�[0m import * as data from '../../config.json';
[7m [0m [91m                      ~~~~~~~~~~~~~~~~~~~[0m

[96msrc/commands/gifs/pat.ts�[0m:[93m9�[0m:[93m23�[0m - [91merror�[0m�[90m TS2307: [0mCannot find module '../../config.json' or its corresponding type declarations.

[7m9�[0m import * as data from '../../config.json';
[7m [0m [91m                      ~~~~~~~~~~~~~~~~~~~[0m

[96msrc/commands/gifs/slap.ts�[0m:[93m9�[0m:[93m23�[0m - [91merror�[0m�[90m TS2307: [0mCannot find module '../../config.json' or its corresponding type declarations.

[7m9�[0m import * as data from '../../config.json';
[7m [0m [91m                      ~~~~~~~~~~~~~~~~~~~[0m

[96msrc/commands/gifs/triggered.ts�[0m:[93m9�[0m:[93m23�[0m - [91merror�[0m�[90m TS2307: [0mCannot find module '../../config.json' or its corresponding type declarations.

[7m9�[0m import * as data from '../../config.json';
[7m [0m [91m                      ~~~~~~~~~~~~~~~~~~~[0m

[96msrc/commands/guild/add-streamer.ts�[0m:[93m13�[0m:[93m23�[0m - [91merror�[0m�[90m TS2307: [0mCannot find module '../../config.json' or its corresponding type declarations.

[7m13�[0m import * as data from '../../config.json';
[7m  [0m [91m                      ~~~~~~~~~~~~~~~~~~~[0m

[96msrc/commands/guild/remove-streamer.ts�[0m:[93m11�[0m:[93m18�[0m - [91merror�[0m�[90m TS2307: [0mCannot find module '../../config.json' or its corresponding type declarations.

[7m11�[0m import data from '../../config.json';
[7m  [0m [91m                 ~~~~~~~~~~~~~~~~~~~[0m

[96msrc/commands/guild/show-announcer-list.ts�[0m:[93m12�[0m:[93m18�[0m - [91merror�[0m�[90m TS2307: [0mCannot find module '../../config.json' or its corresponding type declarations.

[7m12�[0m import data from '../../config.json';
[7m  [0m [91m                 ~~~~~~~~~~~~~~~~~~~[0m

[96msrc/commands/music/lyrics.ts�[0m:[93m10�[0m:[93m23�[0m - [91merror�[0m�[90m TS2307: [0mCannot find module '../../config.json' or its corresponding type declarations.

[7m10�[0m import * as data from '../../config.json';
[7m  [0m [91m                      ~~~~~~~~~~~~~~~~~~~[0m

[96msrc/commands/other/game-search.ts�[0m:[93m10�[0m:[93m23�[0m - [91merror�[0m�[90m TS2307: [0mCannot find module '../../config.json' or its corresponding type declarations.

[7m10�[0m import * as data from '../../config.json';
[7m  [0m [91m                      ~~~~~~~~~~~~~~~~~~~[0m

[96msrc/commands/other/twitch-status.ts�[0m:[93m9�[0m:[93m18�[0m - [91merror�[0m�[90m TS2307: [0mCannot find module '../../config.json' or its corresponding type declarations.

[7m9�[0m import data from '../../config.json';
[7m [0m [91m                 ~~~~~~~~~~~~~~~~~~~[0m

[96msrc/index.ts�[0m:[93m7�[0m:[93m23�[0m - [91merror�[0m�[90m TS2307: [0mCannot find module './config.json' or its corresponding type declarations.

[7m7�[0m import * as data from './config.json';
[7m [0m [91m                      ~~~~~~~~~~~~~~~[0m

[96msrc/structures/ExtendedClient.ts�[0m:[93m7�[0m:[93m23�[0m - [91merror�[0m�[90m TS2307: [0mCannot find module '../config.json' or its corresponding type declarations.

[7m7�[0m import * as data from '../config.json';
[7m [0m [91m                      ~~~~~~~~~~~~~~~~[0m


Found 20 errors in 20 files.

Errors  Files
     1  src/commands/gifs/amongus.ts�[90m:9[0m
     1  src/commands/gifs/anime.ts�[90m:9[0m
     1  src/commands/gifs/baka.ts�[90m:9[0m
     1  src/commands/gifs/cat.ts�[90m:9[0m
     1  src/commands/gifs/doggo.ts�[90m:9[0m
     1  src/commands/gifs/gif.ts�[90m:9[0m
     1  src/commands/gifs/gintama.ts�[90m:9[0m
     1  src/commands/gifs/hug.ts�[90m:9[0m
     1  src/commands/gifs/jojo.ts�[90m:9[0m
     1  src/commands/gifs/pat.ts�[90m:9[0m
     1  src/commands/gifs/slap.ts�[90m:9[0m
     1  src/commands/gifs/triggered.ts�[90m:9[0m
     1  src/commands/guild/add-streamer.ts�[90m:13[0m
     1  src/commands/guild/remove-streamer.ts�[90m:11[0m
     1  src/commands/guild/show-announcer-list.ts�[90m:12[0m
     1  src/commands/music/lyrics.ts�[90m:10[0m
     1  src/commands/other/game-search.ts�[90m:10[0m
     1  src/commands/other/twitch-status.ts�[90m:9[0m
     1  src/index.ts�[90m:7[0m
     1  src/structures/ExtendedClient.ts�[90m:7[0m

If it helps the OS I'm seeing this issue on is Debian 11

@galnir
Copy link
Owner

galnir commented Aug 2, 2022

Do you get these errors in VScode as well? You shouldn't get these errors if you have a config.json file in src/

@ghost
Copy link
Author

ghost commented Aug 3, 2022

The config.json file is in src/. as for VSCode I don't have that on Debian 11 so will have to find something else to use in it's place.

---EDIT---

OMG I'm a dumbass. I had the config.json in the bot/ folder not the src/ folder...

@ghost ghost closed this as completed Aug 3, 2022
This issue was closed.
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