Next.js Discord

Discord Forum

I keep getting `Module not found: Can't resolve (...)/loading.tsx`

Answered
White-tailed Tropicbird posted this in #help-forum
Open in Discord
White-tailed TropicbirdOP
So I added a loading.tsx file just to test something, but now after deleting it I keep getting this error.
I made sure the file isn't imported anywhere, I restarted npm run dev, I restarted my whole Mac and it still shows me this error
Answered by joulev
removing .next should resolve the issue
View full answer

9 Replies

White-tailed TropicbirdOP
Also I am using version control so I went back to a version that didn't have this issue, but I still get this error
Do I have to clear some cache or something?
Answer
Yacare Caiman
Get the same problem
@Yacare Caiman Get the same problem
and removing .next should also fix it
@joulev and removing `.next` should also fix it
Yacare Caiman
Sorry but i don't know where to remove .next
@Yacare Caiman Sorry but i don't know where to remove `.next`
it is a hidden folder. in the root of your project
the .next at the top here
Yacare Caiman