Next.js Discord

Discord Forum

Layout.tsx compile error

Answered
Giant panda posted this in #help-forum
Open in Discord
Giant pandaOP
Before this I don't event create the layout.tsx for each route. But after created it, and decided not to use, then I remove it. But it gives me compile error after that says that it require layout.tsx.

Spaghetti code - still learning this.
https://github.com/ismi-abbas/kewangan-bulanan-abbas/tree/98ede14577f13b46313951b4bdaa0ec4aae2343e
Answered by Rafael Almeida
delete the .next folder and restart the dev server
View full answer

2 Replies

delete the .next folder and restart the dev server
Answer
Giant pandaOP
Thanks dude. I forgot about the caching folder.:516395crythumbsup: