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:
Component file (short example):
This comment on a previous issue reporting a similar error might be of assistance.
Thank you @tywayne
transpilePackages: ['react-tweet']
resolved the issue.