Skip to content
Advertisement

Tag: storybook

Storybook does not start

I have created react app with and create-react-app (and not made any changes in the app ) and initialized storybook by running npx sb init but running yarn storybook gives the following error. I have also tried this with nextjs but storybook gives the same error. Running npx sb info give the following info. Answer It seems that my Windows

Storybook not showing styles

I have a dialog component which is using the Primereact dialog internally. When I make a storybook for the same, the custom css for button is being imported as it is imported inside dialog.jsx. But the default css of Primereact dialog is not loading and reflecting in the storybook. Although it is being loaded in my React app. dialogComp.jsx dialog.storybook.js

VSCODE Javascript template string become white and lost highlight in a non deterministic way

I don’t know exactly how to express it in words to find related problems. In some cases, apparently random, when using JavaScript string templates, the text editor loses becomes white, with bold text and makes editing the code very difficult. First appearance of the problem was when I started working with javascript string for GraphQL query, then it started showing

Storybook with absolute paths

In our app we use absolute paths for importing. As an example if we have a path which is relative to the src folder, we can just write import module from “components/myComponent”. The issue is that this is not working in storybook. After some digging it turns out you can take the default webpack config and extend it as needed

Advertisement