saurabhnemade / react-twitter-embed

Simplest way to add twitter widgets to your react project.
https://saurabhnemade.github.io/react-twitter-embed/
371 stars 66 forks source link

Returning empty div in Next13 #122

Closed lorenzejay closed 2 years ago

lorenzejay commented 2 years ago

Migrating to next13, wondering if anyone else is experiencing this once you moved component to app directory.

<>
...
<TwitterTweetEmbed
      tweetId={"xxx"}
      options={{ conversation: "none", cards: "none", link: "none" }}
    />
...
<>
herlon214 commented 2 years ago

@lorenzejay I'm also using NextJS 13 and it's rendering correctly to me.

Did you add 'use client' to the parent component?

lorenzejay commented 2 years ago

Got it working after deleting the node_modules and next folders and retrying next dev. Works now. Actually works as server component too.

KennStack01 commented 2 years ago

having the same bug: empty div :( any help?