logger doesn't work properly
Hello, so I faced a logger problem. I registered the plugin in src/index.ts and plugin doesn't register properly, I think. Logs looks like a basic sapphire log without a plugin. How can I fix a problem with logger plugin?
Solution:Jump to solution
"@sapphire/plugin-logger": "^3.0.7",That's an old version. Please update to v4.0.2 on that note, these also....
5 Replies
Screenshot isn't loading on my shit data here abroad but I'll trust your text. Show code pls.
Also make sure you recompile your TS code. Nuke dist, nuke tsconfig.tsbuildinfo if it exists, then rebuild.
And please list your dependency versions
nah discords CDN is down/having funky issues
but as for their logs they just look like
with no colour
src/index.ts:
src/lib/AdvancedClient.ts
package.json
Solution
"@sapphire/plugin-logger": "^3.0.7",That's an old version. Please update to v4.0.2 on that note, these also. If you use Yarn as package manager you can use
yarn upgrade-interactive
(assuming yarn v4, if not you can use /tag query:yarnv4
in ##! /bot-commands to find out more about upgrading), if you use npm or pnpm then npx npm-upgrade
followed by npm install
/ pnpm install
, or regardless of package manager you can use the Version Lens vscode extensionThanks!