I am using a Nano Every, and my project has been working fine for a while.
I recently tried attaching a 9V battery to the board using the VIN pin, which worked, but when I reconnected it to my computer after to change some code, I noticed the IDE said my board wasn't connected. This is the same USB cable I was using before, and I haven't had any problems with it.
The code stored on the board still works completely fine and the cable can supply power, but not data. RX and TX lights turn on as usual.
I have reset it several times.
I have tried connecting it to different USB ports on my computer.
Verify the USB cable is for data and not just a power cable.
Assuming Windows...
Listen for the operating system "device inserted" chime.
Check Device Manager while you insert and remove the USB cable.
Disconnect the 9V battery and try again. The PP3 block batteries are for low power devices like smoke alarms, and are among the worst possible choices for powering Arduinos.
You should use the tools shown in the skillbank reference in the @johnerrington post.
If you are convinced it is not the cable or the Windows USB installation on the computer, but the SAMD11 chip in the Nano Every is not seen by Windows it is a significant problem, and may require reprogramming that chip. However, if that chip is indeed fried it may not be able to be reprogrammed.
I have never done it, but you can get into the deep water of reprogramming the SamD11 chip with MUXTO firmware. However, with the windows USB not recognizing the chip, it's not clear to me if it will be recognized as a SAMD11 when you try to reprogram it.
This process did not work for this fellow
If I were in your situation, I'd be replacing the Nano Every with a new one and not going down the rabbit hole of repair.
Due to my self-imposed deadline for this project, I think buying a new Arduino will probably be the best solution, but maybe someday I'll try to reprogram the chip.