Unfortunately, modern EVs are high tech and, with the technology increasing every year, are disposal. Figure on an average life span of 5 years. So, yes, it is true, the battery will probably outlast most modern EVs. The supporting electronics will die first and won't be worth replacing.
It's like computers back in the late 1990s. You bought the best and most up to date you could afford, but knowing full well you will need to upgrade key components within a couple of years, and replace the computer after about 5 years if you want to keep up with the latest hardware/software.