nextjs-notion-starter-kit
nextjs-notion-starter-kit copied to clipboard
@react-icons/all-files hasn't been updated in long time. Replace it with react-icons
trafficstars
Context
This fixes the annoying DeprecationWarning and should allow us to use all of the new icons which are not available in @react-icons/all-files.
$ pnpm dev
> [email protected] dev /Users/onnimonni/Projects/nextjs-notion-starter-kit
> next dev
▲ Next.js 15.0.2
- Local: http://localhost:3000
✓ Starting...
✓ Ready in 3.2s
○ Compiling / ...
✓ Compiled / in 1286ms (759 modules)
(node:79829) [DEP0128] DeprecationWarning: Invalid 'main' field in '/Users/onnimonni/Projects/nextjs-notion-starter-kit/node_modules/@react-icons/all-files/package.json' of 'lib'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)
Screenshots
Icons are rendering perfectly even after this change: