storybook: [Bug]: Storybook 7.0.0 to 7.1.0 - TypeScript warnings for @storybook/angular framework
Describe the bug
I am using Storybook 7.0.0-rc.4 with Angular 14.2. In the tsconfig.json for Storybook, I forgot to set compilerOptions.skipLibCheck to false and it reported these warnings…
info => Preview built (30 s)
WARN export 'default' (imported as 'previewAnnotations') was not found in '/Users/xyz/dev/carbon-charts/node_modules/@storybook/addon-essentials/dist/highlight/preview.mjs' (possible exports: highlightObject, highlightStyle)
WARN export 'default' (imported as 'previewAnnotations') was not found in '/Users/xyz/dev/carbon-charts/node_modules/@storybook/angular/dist/client/config.js' (possible exports: __esModule, applyDecorators, parameters, render, renderToCanvas)
WARN export 'default' (imported as 'previewAnnotations') was not found in '/Users/xyz/dev/carbon-charts/node_modules/@storybook/angular/dist/client/docs/config' (possible exports: __esModule, argTypesEnhancers, decorators, parameters)
The build proceeded without problems but I thought I’d report this.
To Reproduce
No response
System
Environment Info:
System:
OS: macOS 13.2.1
CPU: (10) arm64 Apple M1 Pro
Binaries:
Node: 18.15.0 - /opt/homebrew/bin/node
Yarn: 3.5.0 - /opt/homebrew/bin/yarn
npm: 9.6.2 - /opt/homebrew/bin/npm
Browsers:
Chrome: 111.0.5563.64
Firefox: 111.0
Safari: 16.3
npmPackages:
@storybook/angular: ^7.0.0-0 => 7.0.0-rc.4
Additional context
No response
About this issue
- Original URL
- State: open
- Created a year ago
- Reactions: 6
- Comments: 15 (1 by maintainers)
I don’t really see the point of this warning, it emits even for first-party dependencies that are fully-updated. Nothing seems to be broken.
Still an issue with 7.1.0.
With Storybook 7.0.22:
Same here but using react + webpack. The application runs fine but if I change the
storyStoreV7
to true it doesn’t even builds.Storybook 7.5.0 and all the addons also the same version.
Can someone tag me if there’s a solution?
7.0.27 still has this error as well
I’m on 7.0.8 and I’m facing this only when I set
config.features.storyStoreV7
tofalse
.Letting the default
true
value is worse. Components and stories are randomly breaking when switching from one to another until the page is refreshed.