"Be thorough on requirements" on agile environment

On agile environments, business requirements are constantly changing. The stack may solve today’s requirements, but not future ones. How can we anticipate this? Or should we just move and make entire new stack?

@FIT_TECHNOLOGY When an app is developed it is developed with an idea that it will serve the business requirements for the next 5 to 10 years.