I'm having an issue with an existing project in React Next.js, previously it was working fine but now it's unable to recognise the project and files. Hence I cannot search for files, and also cannot find in files.
I have tried File > Invalidate Caches
but it's still not able to recognise.
Does anyone know what causes this issue, and how to fix it?
Screenshots attached.
WebStorm Project not recognised:
WebStorm Project files not recognised:
WebStorm cannot search files:
WebStorm cannot find in files:
Summary based on @s0xzwasd and @LazyOne suggestion:
Issue:
Project config is somehow corrupted. Files are treated as "outside of the project".
Fix/Solution steps:
.idea
directory in the project root.