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

Usage with Next.js #8

Open
matheus-rosin opened this issue Feb 5, 2021 · 4 comments
Open

Usage with Next.js #8

matheus-rosin opened this issue Feb 5, 2021 · 4 comments

Comments

@matheus-rosin
Copy link

Hi!

Next.js does not allow importing global CSS files in any files other than _app.js. You should consider making import of CSS file per se, for cases such as this.

Thanks

@slogive
Copy link

slogive commented Feb 16, 2021

Same problem here, can't import by this problem.

@brandonsueur
Copy link

Hi guys,

Would it be possible to do what is necessary?

@matheus-rosin
Copy link
Author

I didn't tried it yet, but one thing that should work (as a temp fix) is to import the component at _app.js, then export it as a named export, and import it again from _app.js wherever it should be used

@luismramirezr
Copy link

I didn't tried it yet, but one thing that should work (as a temp fix) is to import the component at _app.js, then export it as a named export, and import it again from _app.js wherever it should be used

This didn't work for me

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

4 participants