Next.js Discord

Discord Forum

Compiler complains it can't find layout after I deleted it.

Answered
West African Lion posted this in #help-forum
Open in Discord
West African LionOP
I made a layout file and then decided I didn't want it so I deleted it, but now the compiler throws Module not found and says it can't find a layout file that I deleted. My root layout remains untouched. Is there a cache that needs to be cleared or something?
Answered by West African Lion
I deleted my .next folder, which resolved the issue.
View full answer

1 Reply

West African LionOP
I deleted my .next folder, which resolved the issue.
Answer