Open saipujitha opened 1 month ago
issue is happening on our project as well. We went from 6.5.x to 8.1.11, and it started to occur. We've reverted to 8.0.1 and it's still happening. We're still trying to find a solution, but would love any feedback / possible avenues to try and get storybook working again
further debugging: for example,
Cannot find module './src/components/contact-form/contact-form.stories.js'
under Chrome's inspect-> sources -> top -> storybook-preview-iframe -> (site name) -> src -> components .... there is no "contact-form" folder, so webpack / storybook hasn't compiled everything.
All of our *stories.js|ts
files are missing in the /src folder, including lots of other folders missing in the /src (/src/emails, /src/components/menu, etc).
this is also occurring on storybook v7.6.20
@shilman - any recommendations on debugging? This app is a gatsby v3 (also upgraded to v5 on another branch), webpack5, js & ts using babel, aliases through webpack and tsconfig.
Describe the bug
I added v8.1.1 of @Storybook/react and the portal came-up and I see my stories listed in components panel but they are not loading and throwing error
Error: Cannot find module './src/cont/exam.stories.js' at webpackEmptyContext (http://localhost:xxxx/main.iframe.bundle.js:211:10) at http://localhost:xxxx/main.iframe.bundle.js:189:312
This is my project structure
project/ ├── .storybook/ │ └── main.js ├── src/ │ └── cont/ │ └── exam.stories.js
This is my main.js in .storybook folder
Also why is Storybook adding './' for any path specified for stories
thanks in advance for the help!
Reproduction link
https://stackblitz.com/github/storybookjs/sandboxes/tree/next/react-webpack/17-ts/after-storybook?file=src%2Fcontainer%2Fexam.stories.js
Reproduction steps
No response
System
Additional context
No response