udecode / plate-playground-template

A Next.js 14 template with Plate playground.
https://playground.platejs.org
MIT License
46 stars 15 forks source link

Problems with lucide-react\dist\esm\icons\pen #1

Closed linhtrinh18 closed 1 year ago

linhtrinh18 commented 1 year ago

Hi,

Cloning the project using command line "pnpm create next-app -e https://github.com/udecode/plate-playground-template", the project work fine for me.

But as I delete the node_module and run npm install, when I run the project again with "npm run dev" The error pop up:

Module not found: Can't resolve 'C:\Users\linht\OneDrive\Desktop\app\plateintegrate\node_modules\lucide-react\dist\esm\icons\pen' https://nextjs.org/docs/messages/module-not-found Import trace for requested module: ./src/components/icons.tsx ./src/components/theme-toggle.tsx

image

Anybody here to help? Thank you

linhtrinh18 commented 1 year ago

Just downgrade the lucide-react to 0.263.1 and everything work just fine Seem like there is a conflict with newer version of nexjs 13.

https://github.com/lucide-icons/lucide/issues/1482