vercel / react-tweet

Embed tweets in your React application.

Home Page:https://react-tweet.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Global CSS cannot be imported from within node_modules.

GuruPrakashDavala opened this issue · comments

I am using Next js version 13.

The EmbeddedTweet component from this package throws CSS Imported by a Dependency issue.
https://nextjs.org/docs/messages/css-npm

I am fetching the tweet data from own API and passing it to the EmbeddedTweet component.

Attached are screenshots for your reference. Any suggestions will be greatly appreciated.

Package.json file:

Package json snapshot

Component file (short example):

React tweet component snapshot

This comment on a previous issue reporting a similar error might be of assistance.

#39 (comment)

Thank you @tywayne

transpilePackages: ['react-tweet'] resolved the issue.