saurabhnemade / react-twitter-embed

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

Returning empty div in Next13 #122

Closed lorenzejay closed 1 year ago

lorenzejay commented 1 year 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 1 year 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 1 year 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 1 year ago

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