Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when starting storybook after fresh install #529

Open
6 tasks done
Art4k opened this issue Sep 19, 2024 · 4 comments
Open
6 tasks done

Error when starting storybook after fresh install #529

Art4k opened this issue Sep 19, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@Art4k
Copy link

Art4k commented Sep 19, 2024

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\@[email protected][email protected][email protected][email protected]_react-do_5rcybpfaelderrqrngvo7kbxhq\node_modules\@storybook\react-docgen-typescript-plugin\dist\index.js' imported from .\node_modules\.pnpm\@[email protected][email protected][email protected][email protected]_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:

  • - pnpm create start-ui --web my-app
  • - cd my-app
  • - cp .env.example .env (change DATABASE_URL)
  • - pnpm install
  • - pnpm db:init
  • - pnpm storybook
@ivan-dalmet
Copy link
Member

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

@yoannfleurydev yoannfleurydev added the bug Something isn't working label Sep 19, 2024
@DecampsRenan
Copy link
Contributor

DecampsRenan commented Sep 20, 2024

Hi, can't reproduce at the moment:

image

@ivan-dalmet
Copy link
Member

@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
Copy link
Author

Art4k commented Sep 24, 2024

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants