Skip to content

[Bug]: CSF factories automigration doesn't modify main.ts when it uses satisfies/as type syntax #32890

@yannbf

Description

@yannbf

Describe the bug

From @IanVS:

In my main.ts, the migration only added the line import { defineMain } from '@storybook/react-vite/node';, but did not use defineMain anywhere. Maybe that's because I had satisfies StorybookConfig; after the default object being exported?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions