[EXP] In with-nextjs/src/pages/index.tsx
, how do I import Global CSS?
#1065
Labels
documentation
Improvements or additions to documentation
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
The text was updated successfully, but these errors were encountered: