IMPORTANT : DO NOT SKIP THIS STEPS AND DO NOT DELETE THEM. WE CAN NOT HELP YOU IF YOU DO NOT PROVIDE INFORMATION AND STEPS TO REPRODUCE
Do not open an issue if you simply "copied" code over to your bot/another bot. This is absolutely not recommended and will cause bugs. Also do not open an issue if you modified code and added features and now it's not working right. This is because I can't figure it out and don't have the time to read your code and find out what you did wrong.
Describe the bug
doing npm run dev shows a bunch of errors (will have logs at bottom)
To Reproduce
Steps to reproduce the behavior:
Do npm run dev
Expected behavior
Should've ran perfectly fine
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: [e.g. Windows, Ubuntu...]: Ubuntu 23.04
Node.js Version(Should be v16 at least): v18.13.0
Is python 2.7 installed?: yes
How are you hosting the bot(Locally, on a vps, heroku, glitch...): locally
Additional context
Add any other context about the problem here.
[0] npm run dev:dashboard exited with code 1
[1] ../api/src/db/client.ts:2:30 - error TS2306: File '/home/natemo/Master-Bot/node_modules/@prisma/client/index.d.ts' is not a module.
[1]
[1] 2 import { PrismaClient } from '@prisma/client';
[1] ~~~~~~~~~~~~~~~~
[1]
[1] ../api/src/routers/command.ts:351:51 - error TS7006: Parameter 'cid' implicitly has an 'any' type.
[1]
[1] 351 set: guild?.disabledCommands.filter(cid => cid !== commandId)
[1] ~~~
[1]
[1] src/commands/guild/remove-streamer.ts:77:46 - error TS7006: Parameter 'channel' implicitly has an 'any' type.
[1]
[1] 77 notifyDB.notification.channelIds.forEach(channel => {
[1] ~~~~~~~
[1]
[1] src/commands/guild/remove-streamer.ts:86:7 - error TS7006: Parameter 'element' implicitly has an 'any' type.
[1]
[1] 86 element => {
[1] ~~~~~~~
[1]
[1] src/commands/guild/remove-streamer.ts:97:47 - error TS7006: Parameter 'element' implicitly has an 'any' type.
[1]
[1] 97 notifyDB.notification.channelIds.filter(element => {
[1] ~~~~~~~
[1]
[1]
[1] Found 5 errors in 3 files.
[1]
[1] Errors Files
[1] 1 ../api/src/db/client.ts:2
[1] 1 ../api/src/routers/command.ts:351
[1] 3 src/commands/guild/remove-streamer.ts:77
[1] npm ERR! Lifecycle script `build` failed with error:
[1] npm ERR! Error: command failed
[1] npm ERR! in workspace: master-bot@1.0.0
[1] npm ERR! at location: /home/natemo/Master-Bot/packages/bot
[1] npm run dev:bot exited with code 1
As far as I'm aware, I did not change anything to cause this, but I will make a clean clone if needed.
IMPORTANT : DO NOT SKIP THIS STEPS AND DO NOT DELETE THEM. WE CAN NOT HELP YOU IF YOU DO NOT PROVIDE INFORMATION AND STEPS TO REPRODUCE
Do not open an issue if you simply "copied" code over to your bot/another bot. This is absolutely not recommended and will cause bugs. Also do not open an issue if you modified code and added features and now it's not working right. This is because I can't figure it out and don't have the time to read your code and find out what you did wrong.
Describe the bug doing npm run dev shows a bunch of errors (will have logs at bottom)
To Reproduce Steps to reproduce the behavior:
npm run dev
Expected behavior Should've ran perfectly fine
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context Add any other context about the problem here.
As far as I'm aware, I did not change anything to cause this, but I will make a clean clone if needed.