For some reason, I am getting this error when importing a working story into and MDX file:
Invalid value passed to the ‘of’ prop. The value was resolved to a ‘component or unknown’ type but the only types for this block are: story.
MDX:
import { Meta, Canvas } from “@storybook/blocks”
import * as ContainerStories from “./container.stories”
<Meta title=“Container” />
<Canvas of={ContainerStories.ContainerExample} />
import { Container } from “./container”
import { Meta, StoryObj } from “@storybook/react”
const story: Meta<typeof Container> = {
title: “Container”,
component: Container,
}
export default story
type Story = StoryObj<typeof Container>
export const ContainerExample: Story = {}
export const Container= ()=> <div></div>