Skip to content

Commit

Permalink
[docs] Update faq.mdx (#91)
Browse files Browse the repository at this point in the history
* Update faq.mdx

* copy tweak
  • Loading branch information
markflorkowski committed May 22, 2023
1 parent 693c21e commit 522e047
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/src/pages/faq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ If your components appear unstyled, you likely forgot to import our CSS file fro
import "@uploadthing/react/styles.css";
```

### Some of my other components look weird now... what's up with that?

You may need to check the order of imports. Making sure that the uploadthing component styles are imported before others usually does the trick
```tsx
import "@uploadthing/react/styles.css";
import '../styles/globals.css'
```

### When I upload files, I get the error `Failed to simulate callback for file. Is your webhook configured correctly?`

This error is our catch-all if we were unable to query the `/api/uploadthing` endpoint. Almost every time we've seen someone who has this issue, it's because their `middleware.ts` is configured incorrectly.
Expand Down

1 comment on commit 522e047

@vercel
Copy link

@vercel vercel bot commented on 522e047 May 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.