Closed GuruPrakashDavala closed 1 year ago
This comment on a previous issue reporting a similar error might be of assistance.
https://github.com/vercel-labs/react-tweet/issues/39#issuecomment-1472555146
Thank you @tywayne
transpilePackages: ['react-tweet']
resolved the issue.
I am using Next js version 13.
The
EmbeddedTweet
component from this package throwsCSS Imported by a Dependency
issue. https://nextjs.org/docs/messages/css-npmI 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:
Component file (short example):