Not true. While it's harder, you can stack shift. I've done Ruby/Rails, Python/Django, and JavaScript/React and treated them as interchangeable. I might be rejected in some resume screens here and there but once talking I make it clear I'm comfortable with the target tech stack and it has never been an issue.