Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global CSS cannot be imported from within node_modules. #73

Closed
GuruPrakashDavala opened this issue Apr 8, 2023 · 2 comments
Closed

Comments

@GuruPrakashDavala
Copy link

GuruPrakashDavala commented Apr 8, 2023

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

@tywayne
Copy link
Contributor

tywayne commented Apr 8, 2023

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

#39 (comment)

@GuruPrakashDavala
Copy link
Author

Thank you @tywayne

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants