"@storybook/preview-web"' has no exported member 'WebProjectAnnotations'. #18531
-
The latest version (6.5.9) of @storybook/preview-web does not have the WebProjectAnnotations type exported. @storybook/preview-web is a peer dependency of @storybook/testing-react which is using version >= 6.4.0 which results in version 6.5.9 being used with the missing export. Version 6.4.22 of @storybook/preview-web had the export in https://github.com/storybookjs/storybook/blob/v6.4.22/lib/preview-web/src/types.ts
Is there a reason for this omission or is this a bug? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
Hi! 👋 I used patch-package to patch diff --git a/node_modules/@storybook/preview-web/dist/ts3.9/index.d.ts b/node_modules/@storybook/preview-web/dist/ts3.9/index.d.ts
index f25c732..3477211 100644
--- a/node_modules/@storybook/preview-web/dist/ts3.9/index.d.ts
+++ b/node_modules/@storybook/preview-web/dist/ts3.9/index.d.ts
@@ -1,4 +1,4 @@
-export { composeConfigs } from '@storybook/store';
+export { composeConfigs, WebProjectAnnotations } from '@storybook/store';
export { Preview } from './Preview';
export { PreviewWeb } from './PreviewWeb';
export { simulatePageLoad, simulateDOMContentLoaded } from './simulate-pageload'; |
Beta Was this translation helpful? Give feedback.
-
Is there any reliable solution now? |
Beta Was this translation helpful? Give feedback.
-
An issue has been opened, but |
Beta Was this translation helpful? Give feedback.
-
Hello guys, finally i've founded the solution for this problem, kindly, could you review this pr for me ? i really aprecciate that. Thanks |
Beta Was this translation helpful? Give feedback.
-
I forgot to mention here: I worked with the Storybook team and a PR has been merged for a |
Beta Was this translation helpful? Give feedback.
I forgot to mention here: I worked with the Storybook team and a PR has been merged for a
patch
release.#19048