Questions tagged [storybook]
Storybook is a development environment for JavaScript UI components. It allows you to browse a component library, view the different states of each component (isolated from the rest of your application), and interactively develop and test components.
storybook
2,189
questions
0
votes
0
answers
10
views
How to programmatically generate storybook stories?
I'm working on a library for visualization. There are lots of combination of configurations. I don't want to manually create the stories.
Imagine I have two options, show/hideLabel, show/hideAxis. ...
0
votes
0
answers
16
views
How to import storybook stories into cypress for component test with angular
I am trying to use storybook with cypress on an angular app for component testing .My need is to create stories for angular components and use them in cypress .In React we can use ComposeStories ...
-1
votes
0
answers
18
views
"args"' does not exist in type 'StoryProps'
I am using storybook with svelkit, and i got this error with latest storybook update that args does not exist in type StoryProps, Here is my storybook code, error is in when i am making story with ...
0
votes
0
answers
22
views
No able to upgrade storybook to 8.2.4
I am not able to upgrade the storybook to 8.2.4.
After upgrading storybook and run yarn storybook I keep having this issue(see Issue). I have removed the modules folders and I have updated my dev ...
0
votes
0
answers
14
views
react storybook not working with relative path import
I tried implement strory book to current react-typescript project. I installed storybook 8.2.2.
In the projects all import are made by absolute imports, such as src/components/Button, not by relative ...
1
vote
1
answer
40
views
How to run both storybook and cypress in headless mode
I am trying to use storybook and cypress for component testing with Angular framework .I am able to run test cases when storybook server and cypress are running separately but finding difficult to run ...
0
votes
0
answers
15
views
Expose Angular Kendo UI properties automatically in Storybook
I want to do something similar to what has been achieved in this article (https://www.telerik.com/blogs/how-i-built-this-kendoreact-storybook), except using Kendo Angular.
In the article the author ...
0
votes
0
answers
23
views
Build failed in Storybook webpack config caused by svg
this error occurs when launching storybook, all svg that i use in the application cause an error
in ./src/shared/assets/icons/about-20-20.svg ...etc
Module build failed (from ./node_modules/@svgr/...
0
votes
1
answer
83
views
Can't install Storybook into my Next.js app
I got TypeError trying to install Storybook in my Next.js app.
I got the Error:
`An error occurred while installing dependencies:
wnt.default is not a function
Error: TypeError: wnt.default is not a ...
0
votes
0
answers
21
views
How can I use path aliases in a library in a way that aliases are resolved when used by library consumers?
I am building a vue storybook component library with vite called my-storybook. I configed it to resolve alias @ to /src.
// .storybook/main.js
module.exports = {
// other configs
// ........
...
0
votes
0
answers
22
views
What is the compatible version of storybook addon theme?
I want to configure custom theme classes in my nx angular application. I just installed storybook version of 7.5.3 and storybook-addon-themes 6.1.0 which is latest version of custom theme ...
2
votes
1
answer
20
views
PrimeReact AccordionTab Not Rendering When Wrapped in Custom Component
I'm facing an issue where my custom FilterAccordionTab component, which extends PrimeReact's (V8) AccordionTab, is not rendering its content. However, when I directly use PrimeReact's AccordionTab ...
0
votes
0
answers
11
views
Storybook v7 Cannot read property of undefined (ComponentHoc)
The code exports a constant containing the result of executing the ComponentHoc function. When I try to reflect a component in story, I get an error
TypeError: Cannot read properties of undefined (...
0
votes
1
answer
125
views
Error: Could not resolve various Storybook dependencies with Storybook 8 and PNPM
When attempting to use Storybook 8 with PNPM in my Next.js project, I encounter errors indicating that various Storybook dependencies cannot be resolved. This issue persists despite multiple ...
0
votes
0
answers
46
views
Missing loader using MUI date picker storybook
I am unable to use MUI date picker in a storybook with the below error
ERROR in
./node_modules/@mui/x-date-pickers/DesktopTimePicker/DesktopTimePicker.js
45:52 Module parse failed: Unexpected token (...