src/pages dizini altında çalışmak için bir şey yapmanıza gerek yok. uzun süre önce bununla ilgili bir güncelleme yapıldı; https://github.com/vercel/next.js/issues/8451

src/pages altında bir index.js dosyası oluşturun;

import React from 'react';

export default function App() {
    return <React.Fragment>Hello World!</React.Fragment>;
}
sorun yaşamıyor olmanız lazım.