You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am trying to setup Storybook for Angular 8, however when running npm run storybook I am getting the following errors:
ERROR in /home/user/dev/storybook/src/stories/Button.stories.ts
ERROR in /home/user/dev/storybook/src/stories/Button.stories.ts(2,29):
TS2307: Cannot find module '@storybook/angular/types-6-0'.
ERROR in /home/user/dev/storybook/src/stories/Header.stories.ts
ERROR in /home/user/dev/storybook/src/stories/Header.stories.ts(1,32):
TS2307: Cannot find module '@storybook/angular'.
ERROR in /home/user/dev/storybook/src/stories/Header.stories.ts
ERROR in /home/user/dev/storybook/src/stories/Header.stories.ts(4,29):
TS2307: Cannot find module '@storybook/angular/types-6-0'.
ERROR in /home/user/dev/storybook/src/stories/Page.stories.ts
ERROR in /home/user/dev/storybook/src/stories/Page.stories.ts(1,45):
TS2307: Cannot find module '@storybook/angular'.
To Reproduce
Unable to create a reproducible test case as Angular 8 is not listed in npx sb@next repro and the node version I am using node@10.12 does not support the versions listed.
Importing everything from @storybook/angular and not using @storybook/angular/types-6-0Source
Adding @storybook/angular/types-6-0 to .storybook/typings.d.tsSource
Adding ../src/setupJest.ts to the exclude array in .storybook/tsconfig.jsonSource
Adding "enableIvy": false to tsconfig.json under "angularCompilerOptions"
Vscode can see the modules just fine:
Notes
Although I am sure that Angular 8 is not supported by Storybook, I would still like some help as I am getting a lot of pressure from my bosses to "do the needful and whip up the thing for us" so we can have a components library. Sadly, upgrading Angular or node is not an option at the moment.
Describe the bug
I am trying to setup Storybook for Angular 8, however when running npm run storybook I am getting the following errors:
To Reproduce
Unable to create a reproducible test case as Angular 8 is not listed in
npx sb@next repro
and the node version I am usingnode@10.12
does not support the versions listed.System
Additional context
My current package.json
NPM output while running npm run storybook
Steps I've already tried:
@storybook/angular
and not using@storybook/angular/types-6-0
Source@storybook/angular/types-6-0
to.storybook/typings.d.ts
Source../src/setupJest.ts
to the exclude array in.storybook/tsconfig.json
Source"enableIvy": false
totsconfig.json
under"angularCompilerOptions"
Vscode can see the modules just fine:
Notes
Although I am sure that Angular 8 is not supported by Storybook, I would still like some help as I am getting a lot of pressure from my bosses to "do the needful and whip up the thing for us" so we can have a components library. Sadly, upgrading Angular or node is not an option at the moment.
I have also created a question on StackOverflow for this exact situation.
The text was updated successfully, but these errors were encountered: