fuma-nama / discord-bot-dashboard-next

The Most Powerful Discord bot Dashboard Template
https://demo-bot.vercel.app
MIT License
177 stars 61 forks source link

Default export is deprecated #40

Closed WinDino closed 7 months ago

WinDino commented 7 months ago

Describe the bug When I launch the dashboard in dev mode, I receive a warning.

To Reproduce Simply run the command "pnpm run dev" and visit a page of the dashboard while logged in.

Expected behavior Here's what we get in the console:

root@debian:~/discord-bot-dashboard-next# pnpm run dev

> dashboard@1.2.0 dev /root/discord-bot-dashboard-next
> next dev

  ▲ Next.js 13.5.6
  - Local:        http://localhost:3000
  - Environments: .env

 ✓ Ready in 7.6s
 ✓ Compiled /src/middleware in 639ms (59 modules)
 ○ Compiling /user/home ...
 ✓ Compiled /user/home in 11.2s (1505 modules)
[DEPRECATED] Default export is deprecated. Instead use `import { create } from 'zustand'`.
[DEPRECATED] Default export is deprecated. Instead use `import { create } from 'zustand'`.
 ✓ Compiled /api/auth in 1520ms (231 modules)
 ○ Compiling /guilds/[guild] ...
 ✓ Compiled /guilds/[guild] in 7.3s (1699 modules)
[DEPRECATED] Default export is deprecated. Instead use `import { create } from 'zustand'`.
[DEPRECATED] Default export is deprecated. Instead use `import { create } from 'zustand'`.

The problem is [DEPRECATED] Default export is deprecated. Instead use `import { create } from 'zustand'`.

Additional context My Node.js version is 18.18.2. I should note that I don't have a backend in place yet.

fuma-nama commented 7 months ago

Fixed