Global CSS related error while running project

Asked

Viewed 11 times

0

I have two other projects with the same file structure and that are running (npm run dev) usually but this third one ends in error and does not render the default page of a project with next.js.

Failed to Compile 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_app.js

The following image illustrates the structure of the files...Estrutura de Arquivos

  • Please clarify your problem or provide additional details in order to highlight exactly what you need. The way it’s written these days it’s hard to tell exactly what you’re asking.

  • My question is how to resolve the mentioned error that complains about importing the global CSS file. .

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.