Issue with upgrade Storybook from 9.0.8 to 10.0.8 using Angular #33138
-
SummaryThere is an issue with imports when upgraded version is used, specifically Examples of imports: Versions used: Additional informationNo response Create a reproductionNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Hi @DusanJanosevicAkur8! I'm Dosu and I’m helping the storybook team. For Storybook 10.0.8, the correct import for the actions addon is: import { action } from "@storybook/actions";The path If you see TypeScript errors like "Cannot find module '@storybook/actions'", make sure your editor is using the workspace TypeScript version (from your project's If you continue to have issues, please share the exact error messages or a minimal reproduction so we can help further. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Hi @DusanJanosevicAkur8,
Please always use
npx storybook@latest upgradeto upgrade Storybook. We have automigrations in place to migrate your project to the latest version of Storybook. One of the automigrations for example also removes@storybook/addon-actionsand rewrites all import tostorybook/actions.@storybook/addon-actionsdoesn't exist anymore and was moved intostorybook/actions