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)

Most upvoted comments

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.

Screenshot 2023-12-04 at 12 39 40 PM

Still an issue with 7.1.0.

With Storybook 7.0.22:

image

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?

image

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 to false.

./node_modules/@storybook/addon-essentials/dist/actions/preview.mjs-generated-config-entry.js 4:15-41export 'default' (imported as 'previewAnnotations') was not found in '/mnt/data/dev/repos/everflow/frontend-revam
./node_modules/@storybook/addon-essentials/dist/actions/preview.mjs' (possible exports: argsEnhancers)
./node_modules/@storybook/addon-essentials/dist/backgrounds/preview.mjs-generated-config-entry.js 4:15-41export 'default' (imported as 'previewAnnotations') was not found in '/mnt/data/dev/repos/everflow/frontend-revam
./node_modules/@storybook/addon-essentials/dist/backgrounds/preview.mjs' (possible exports: decorators, globals, parameters)
./node_modules/@storybook/addon-essentials/dist/docs/preview.mjs-generated-config-entry.js 4:15-41export 'default' (imported as 'previewAnnotations') was not found in '/mnt/data/dev/repos/everflow/frontend-revam
./node_modules/@storybook/addon-essentials/dist/docs/preview.mjs' (possible exports: parameters)
./node_modules/@storybook/addon-essentials/dist/highlight/preview.mjs-generated-config-entry.js 4:15-41export 'default' (imported as 'previewAnnotations') was not found in '/mnt/data/dev/repos/everflow/frontend-revam
./node_modules/@storybook/addon-essentials/dist/highlight/preview.mjs' (possible exports: highlightObject, highlightStyle)
./node_modules/@storybook/addon-essentials/dist/measure/preview.mjs-generated-config-entry.js 4:15-41export 'default' (imported as 'previewAnnotations') was not found in '/mnt/data/dev/repos/everflow/frontend-revam
./node_modules/@storybook/addon-essentials/dist/measure/preview.mjs' (possible exports: decorators, globals)
./node_modules/@storybook/addon-essentials/dist/outline/preview.mjs-generated-config-entry.js 4:15-41export 'default' (imported as 'previewAnnotations') was not found in '/mnt/data/dev/repos/everflow/frontend-revam
./node_modules/@storybook/addon-essentials/dist/outline/preview.mjs' (possible exports: decorators, globals)
./node_modules/@storybook/addon-interactions/dist/preview.mjs-generated-config-entry.js 4:15-41export 'default' (imported as 'previewAnnotations') was not found in '/mnt/data/dev/repos/everflow/frontend-revam
./node_modules/@storybook/addon-interactions/dist/preview.mjs' (possible exports: argsEnhancers, parameters, runStep)
./node_modules/@storybook/addon-links/dist/preview.mjs-generated-config-entry.js 4:15-41export 'default' (imported as 'previewAnnotations') was not found in '/mnt/data/dev/repos/everflow/frontend-revam
./node_modules/@storybook/addon-links/dist/preview.mjs' (possible exports: decorators)
./node_modules/@storybook/angular/dist/client/config.js-generated-config-entry.js 4:15-41export 'default' (imported as 'previewAnnotations') was not found in '/mnt/data/dev/repos/everflow/frontend-revam
./node_modules/@storybook/angular/dist/client/config.js' (possible exports: __esModule, applyDecorators, parameters, render, renderToCanvas)
./node_modules/@storybook/angular/dist/client/docs/config.js-generated-config-entry.js 4:15-41export 'default' (imported as 'previewAnnotations') was not found in '/mnt/data/dev/repos/everflow/frontend-revam
./node_modules/@storybook/angular/dist/client/docs/config.js' (possible exports: __esModule, argTypesEnhancers, decorators, parameters)
undefined undefined
DefinePlugin
Conflicting values for 'process.env.NODE_ENV'

Letting the default true value is worse. Components and stories are randomly breaking when switching from one to another until the page is refreshed.