IRremote library causing "Error compiling for board Arduino Nano"

I'm trying to make an LCD screen count down, beep, and flash my lights through IR at the same time, but when I include the IRremote.h library I get an error. The code works without the library included, but it fails when I put #include <IRremote.h> in. I copied the error message below

Arduino: 1.8.11 (Windows Store 1.8.29.0) (Windows 10), Board: "Arduino Nano, ATmega328P"

Tone.cpp.o (symbol from plugin): In function `timer0_pin_port':

(.text+0x0): multiple definition of `__vector_7'

libraries\IRremote\IRremote.cpp.o (symbol from plugin):(.text+0x0): first defined here

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Arduino Nano.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

You're using another library which uses the same hardware timer as IRremote - they're fighting over vector_7, which is related to timer2. Both IRremote and whatever other library you are trying to use with it both require full control of timer2; they are not compatible.

https://forum.arduino.cc/index.php?topic=454873.msg3127065#msg3127065

Note that the file where you need to change the timer is nowadays boarddefs.h.