Global CSS cannot be imported from files other than your Custom <App>. Please move all global CSS imports to pages\_app. code example
Example: global css cannot be imported from files other than your
import '../global-styles/main.scss'
export default function MyApp({ Component, pageProps }) {
return <Component {...pageProps} />
}