Probably more of a react/next question but figured I would post here since I followed prismics tutorial.
So I made a blog following the tutorial here: Sample Blog with API-based CMS in Next.js | Prismic Help Center
I'm trying to use .scss for my styles and getting the following error:
Global CSS cannot be imported from files other than your Custom <App>. Please move all global CSS imports to pages/_app.js. Or convert the import to Component-Level CSS (CSS Modules). Read more: https://err.sh/next.js/css-global Location: pages/index.js
The way this blog is structured from the tutorial there is no
_app.js file. The
index.js file is the top level... component (not sure what the name of this file is)?
I do not want to use css modules (we are globally using bootstrap and need to load things globally) and will need to port over the existing
.scss structure that I have already established.
You can find my repo here: dd-nextjs-blog-ssr/pages at main · nikibrown/dd-nextjs-blog-ssr · GitHub
I'm new to next/react so im not quite sure how to structure things to have a
_app.js file and load the global style. My google-fu is failing me right now so am quite stuck.