Details
I am able to use the Drawer component in my application, but launching in Storybook does not work. Cloning this repository and adding in simple code produces the same error.
- OS: Ubuntu
- Node: 21.7.1
- Everything Else: from the repo

Steps to Reproduce
- Clone the next-app-template repo and checkout the
master branch
- Run the installs:
yarn install
- Launch Storybook via Yarn:
yarn run storybook
- Add a
MyDrawer component (file details below)
- Add a
MyDrawer story (file details below)
- Attempt to load it in the browser
File Details: components/MyDrawer/MyDrawer.tsx
import { useDisclosure } from "@mantine/hooks";
import { Drawer, Button } from '@mantine/core';
export function MyDrawer() {
const [opened, { open, close }] = useDisclosure(false);
return (
<>
<Drawer opened={opened} onClose={close} title='My Drawer'>
<div>This would be content.</div>
</Drawer>
<Button onClick={open}>Open Drawer</Button>
</>
);
}
File Details: components/MyDrawer/MyDrawer.story.tsx
import { MyDrawer } from './MyDrawer';
export default {
title: 'MyDrawer',
};
export const Usage = () => <MyDrawer />;
Details
I am able to use the
Drawercomponent in my application, but launching in Storybook does not work. Cloning this repository and adding in simple code produces the same error.Steps to Reproduce
masterbranchyarn installyarn run storybookMyDrawercomponent (file details below)MyDrawerstory (file details below)File Details:
components/MyDrawer/MyDrawer.tsxFile Details:
components/MyDrawer/MyDrawer.story.tsx