casperiv0 / ghostybot

🤖 A feature-rich Discord bot with +200 commands for Discord servers. Economy, util, fun, music, admin and more! Built with Next.js and Discord.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Error and Database error

Considerated opened this issue · comments

Error whenever I try to run npm run build:
Error:

info  - Checking validity of types  

Failed to compile.

./src/pages/_document.tsx
1:1  Error: next/document should not be imported outside of pages/_document.js.

Additional Info:
Discord.js Version: 13
Repo version: Latest
Node.js Version: 16

I also get a database error, when I disable the dashboard. I've tried whitelisting all IP's, tried creating a new user and stuff.
The error is:

error: querySrv ETIMEOUT _mongodb._tcp.midnightbot.tumhy.mongodb.net
    at QueryReqWrap.onresolve [as oncomplete] (node:dns:213:19) {
  errno: undefined,
  code: 'ETIMEOUT',
  syscall: 'querySrv',
  hostname: '_mongodb._tcp.midnightbot.tumhy.mongodb.net'
}

Any form of help is hugely appreciated 🤗

Tried to fix the next error. Couldn't update eslint, because apparently, ghostybot uses a custom-made eslint plugin.
Casper, please update the package, thanks :D