Skip to content

Commit

Permalink
(docs): Update Storybook page to mention absolute importing.
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshew committed Nov 4, 2024
1 parent cb5a8e6 commit 70f7314
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/repo-docs/guides/tools/storybook.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,12 @@ Update components imports so that they reference the now co-located modules. For
+ import { Button } from "./button";
```

<Callout type="good-to-know">
You may also need to update [absolute
imports](/repo/docs/guides/tools/typescript#use-nodejs-subpath-imports-instead-of-typescript-compiler-paths)
according to your changes and usage.
</Callout>

You'll also need to install any Storybook packages required for writing stories. For example, moving the story from above would require that you install `@storybook/react` into your `@repo/ui` package.

<PackageManagerTabs>
Expand Down

0 comments on commit 70f7314

Please sign in to comment.