angular-storybook Questions
5
Solved
Cannot configure story for module where routerLink is used due to error
ERROR NullInjectorError: StaticInjectorError(DynamicModule)[RouterLinkActive -> Router]
To Reproduce
Steps to reproduce ...
Perky asked 15/1, 2020 at 8:27
2
Solved
I installed storybook by npx sb init but when try to run storybook in angular 16 I got below error. These errors are not pointing to any specific code in the project but some random code in node an...
Evermore asked 26/5, 2023 at 18:51
5
Solved
I've created an Angular library in Nx workspace to provide ui-components (ui-kit). To this library I added Storybook which was working fine. Now I also want to include Tailwind because the componen...
Diplomate asked 25/2, 2022 at 10:12
2
I have a dropdown directive which I want to add to my storybook, its not working. When I run the button shows on the storybook but if I click on the button the template is not getting displayed.
i...
Underhanded asked 7/5, 2020 at 4:30
1
I'm looking to generate a .stories.ts file inside a component folder once we have run ng g component my-component.
The final result should look somehting like this:
my-component
-my-component.com...
Essayist asked 5/10, 2021 at 16:37
2
I have updated angular from 11 to 12 and I have also updated all packages to the latest versions in my package.json:
{
"name": "poc-architecture-angular",
"version"...
Narrow asked 13/9, 2021 at 8:7
4
Solved
I'm exploring Nx with Angular (relatively new to both) and trying to figure out how to generate a component library that:
Can run Storybook, and
Can be imported one component at a time, rather tha...
Rajiv asked 30/3, 2020 at 21:33
2
I am trying to create a Storybook using the Angular Material library in an nx app but I can't get the styles to appear that come along with the library. So the component renders but there are no st...
Pomeroy asked 31/3, 2022 at 22:9
1
I'm trying to make a Story that uses a component that takes a TemplateRef as an @Input. But I can't figure out how.
TestComponent
@Component({
selector: 'test',
templateUrl: './test.component.htm...
Susian asked 21/9, 2021 at 9:38
1
Im using storybook to create a component library, I came across this issue where my component has a ngOnChanges method implemented that doesn't run when I pass in the value from Storybook Controls....
Olivette asked 31/1, 2022 at 4:34
0
I have been following the multiple guides and troubleshooting online while migrating storybook to the newest version. I get this error:
BREAKING CHANGE: webpack < 5 used to include polyfills for...
Refrigerate asked 8/12, 2021 at 11:59
1
Solved
I will install Snapshot Testing with Storybook under Angular 12.
I install jest $ yarn add --dev jest jest-preset-angular @types/jest and make Settings
"jest": {
"preset": &quo...
Chaffin asked 21/10, 2021 at 6:45
3
Solved
Getting the below error while installing and starting a storybook.
ERROR in /Users/username/angular-storybook/src/stories/Button.stories.ts
ERROR in /Users/username/angular-storybook/src/stories/Bu...
Redware asked 18/8, 2020 at 5:5
0
How to subscribe to the component Output in Storybook for Angular?
For example, I have such component with its Output actions:
import { Component, Input, Output, EventEmitter } from '@angular/core'...
Hebdomad asked 22/3, 2021 at 13:24
1
I'm building out an Angular app with Storybook. I want my stories to have controllable knobs, but some of these components take ng-content.
I'm having trouble getting these two to work together, ...
Pastelist asked 31/3, 2020 at 19:34
1
Solved
I have a relatively simple angular component that uses angular material components - mat-menu in particular.
When I create my story, I get a runtime error:
Error: Template parse errors:
Can't bi...
Kimikokimitri asked 22/10, 2019 at 3:46
1
© 2022 - 2024 — McMap. All rights reserved.