Composer doesn't see my code anymore. Every time I ask it to make something it just creates new files

This happens randomly to me, especially if I shut down my computer for the night and come back the next day.

I’ll give Composer a command and it’s as if it lost all context. It doesn’t see any existing code I have in the project and just starts creating new files in the root.

How do I fix this?

1 Like