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

[EXP] In with-nextjs/src/pages/index.tsx, how do I import Global CSS? #1065

Open
2 tasks done
zxl777 opened this issue Sep 8, 2024 · 0 comments
Open
2 tasks done
Labels
documentation Improvements or additions to documentation

Comments

@zxl777
Copy link

zxl777 commented Sep 8, 2024

What is the example you wish to see?

In https://github.com/PlasmoHQ/examples/tree/main/with-nextjs/src/pages/index.tsx, how do I import Global CSS?
Now I can import Global CSS in .../with-nextjs/src/popup/index.tsx

Is there any context that might help us understand?

`Global CSS cannot be imported from files other than your Custom . Due to the Global nature of stylesheets, and to avoid conflicts, Please move all first-party global CSS imports to pages/_app.js. Or convert the import to Component-Level CSS (CSS Modules).
Read more: https://nextjs.org/docs/messages/css-global
Location: src/pages/index.tsx

Import trace for requested module:
./src/style.css`

Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I checked the current issues for duplicate problems.
@zxl777 zxl777 added the documentation Improvements or additions to documentation label Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant