Skip to content

Commit

Permalink
Adds note about errors when generating cells without a SDL file (#5764)
Browse files Browse the repository at this point in the history
  • Loading branch information
cannikin authored Jun 14, 2022
1 parent 7423b55 commit 339d783
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/docs/tutorial/chapter6/multiple-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ Let's generate a **CommentsCell**:
yarn rw g cell Comments
```

:::caution What's with these errors and warnings after generating this cell?

Redwood will try to generate types to go along with your cell. However, we haven't generated an SDL file for the Comment model yet, so types can't be created. This is safe to ignore for now as we're building out our UI in Storybook.

You may also see some red squiggles in your IDE: same thing, types couldn't be generated.

:::

Storybook updates with a new **CommentsCell** under the **Cells** folder, and it's actually showing something:

![image](https://user-images.githubusercontent.com/300/153477642-0d5a15a5-f96f-485a-b8b0-dbc1c4515279.png)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ Let's generate a **CommentsCell**:
yarn rw g cell Comments
```

:::caution What's with these errors and warnings after generating this cell?

Redwood will try to generate types to go along with your cell. However, we haven't generated an SDL file for the Comment model yet, so types can't be created. This is safe to ignore for now as we're building out our UI in Storybook.

You may also see some red squiggles in your IDE: same thing, types couldn't be generated.

:::

Storybook updates with a new **CommentsCell** under the **Cells** folder, and it's actually showing something:

![image](https://user-images.githubusercontent.com/300/153477642-0d5a15a5-f96f-485a-b8b0-dbc1c4515279.png)
Expand Down

0 comments on commit 339d783

Please sign in to comment.