I had this issue (Next 14) once I started migrating some files over to TS - I think the tsconfig is overwriting the jsconfig.
Moving my compiler options to the tsconfig and restarting the dev server solved my issues.