I am running Next.js 13.0.5 with Yarn 3.2.1 and Lerna 5.6.1.
It seems like the main problem here is the build tool, because when I run the Next.js server itself (yarn dev
) everything works perfectly.
What error am I getting?
Type error: Cannot find module 'next/app' or its corresponding type declarations.
which happens here right at the start of the program
import type { AppProps } from 'next/app'
^
function MyApp({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />
}
After looking around I tried some experimental features like swcFileReading : false
but it doesn't seem to have any effect.