BearStudio / start-ui-web

πŸš€ Start UI [web] is an opinionated UI starter with 🟦 TypeScript, βš›οΈ React, ⚫️ NextJS, ⚑️ Chakra UI, 🟦 tRPC, πŸ” Lucia Auth, β–² Prisma, πŸ–οΈ TanStack Query, πŸ“• Storybook, 🎭 Playwright,πŸ“‹ React Hook Form,β—½From the 🐻 BearStudio Team
https://demo.start-ui.com
MIT License
1.4k stars 132 forks source link

Error when starting storybook after fresh install #529

Open Art4k opened 2 months ago

Art4k commented 2 months ago

Just following Getting Started guide. Nextjs runs fine but storybook throws Cannot find package error.

node 20.17.0 pnpm 9.10.0 Windows 10

ERROR:

Failed to build the preview
Error: Cannot find package '.\node_modules\.pnpm\@storybook+preset-react-webpack@8.1.11_encoding@0.1.13_esbuild@0.20.2_prettier@3.3.2_react-do_5rcybpfaelderrqrngvo7kbxhq\node_modules\@storybook\react-docgen-typescript-plugin\dist\index.js' imported from .\node_modules\.pnpm\@storybook+preset-react-webpack@8.1.11_encoding@0.1.13_esbuild@0.20.2_prettier@3.3.2_react-do_5rcybpfaelderrqrngvo7kbxhq\node_modules\@storybook\preset-react-webpack\dist\framework-preset-react-docs.js
Did you mean to import "@storybook/react-docgen-typescript-plugin/dist/index.js"?

image

Reproduce:

ivan-dalmet commented 2 months ago

Thanks for the feedback, we are trying to reproduce and to fix that.

DecampsRenan commented 2 months ago

Hi, can't reproduce at the moment:

image

ivan-dalmet commented 2 months ago

@Art4k we did a lot of tests to try to reproduce the issue but like @DecampsRenan said we didn’t find a way to reproduce. Any idea on your side which element we are missing that can be specific to your computer?

Art4k commented 2 months ago

@ivan-dalmet i tested on my other projects with yarn and everything works fine so maybe pnpm installed wrong on my side. I will test it and let you know.