shadcn-ui / ui

Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.
https://ui.shadcn.com
MIT License
62.84k stars 3.53k forks source link

Installation using pnpm doesn't work #356

Closed torn4dom4n closed 10 months ago

torn4dom4n commented 1 year ago

I try to use pnpm to setup a project following this document. Firstly, I added pnpm create next-app -e https://github.com/shadcn/next-template in the cmd and named it shadcnui-starter. After that, I opened shadcnui-starter folder and ran pnpm dev. Here is the error I found:

image

Everything looks fine when I use npm.

kratos-respawned commented 1 year ago

exec pnpm up --latest && pnpm i then try running the dev server

torn4dom4n commented 1 year ago

exec pnpm up --latest && pnpm i then try running the dev server

@kratos-respawned It's working now. Thank you. I can see a lot of dependencies updated:

dependencies:
- class-variance-authority 0.4.0
+ class-variance-authority 0.6.0
- lucide-react 0.105.0-alpha.4
+ lucide-react 0.216.0
- next 13.3.0
+ next 13.4.2
- react-day-picker 8.6.0
+ react-day-picker 8.7.1
- sharp 0.31.3
+ sharp 0.32.1

devDependencies:
- @ianvs/prettier-plugin-sort-imports 3.7.1
+ @ianvs/prettier-plugin-sort-imports 3.7.2
- @types/node 17.0.12
+ @types/node 20.1.4
- @types/react 18.0.22
+ @types/react 18.2.6
- @types/react-dom 18.0.7
+ @types/react-dom 18.2.4
- @typescript-eslint/parser 5.58.0
+ @typescript-eslint/parser 5.59.5
- autoprefixer 10.4.13
+ autoprefixer 10.4.14
- eslint 8.31.0
+ eslint 8.40.0
- eslint-config-next 13.0.0
+ eslint-config-next 13.4.2
- eslint-config-prettier 8.3.0
+ eslint-config-prettier 8.8.0
- eslint-plugin-react 7.31.11
+ eslint-plugin-react 7.32.2
- eslint-plugin-tailwindcss 3.8.0
+ eslint-plugin-tailwindcss 3.11.0
- postcss 8.4.21
+ postcss 8.4.23
- prettier 2.7.1
+ prettier 2.8.8
- tailwindcss 3.3.1
+ tailwindcss 3.3.2
- typescript 4.9.3
+ typescript 5.0.4

I follow the installation from this document, so I think next-template needs to be updated too.

shadcn commented 1 year ago

@torn4dom4n Yep. I'll update next-template. Thanks for the heads up.

torn4dom4n commented 10 months ago

Closed this issue after updated