I'm currently a young researcher (PhD + 1 post-doc) in robotics. During my PhD I worked on a well-known topic in my field, having (based on what the permanents around me said) quite good results. Afterwards, I landed a post-doc with one of the world-leading experts in my specific area of expertise, for which I was over the moon, and I'm still having notable results.
Since the end of my post-doc is coming up, I started looking for an assistant professor/permanent researcher position (this is in the EU). When I started speaking with prospective employers (i.e., universities and research institutes, not in the private sector), the response I got was quite hard for me: my area of expertise is obsolete, and applying today as an expert on my main topic simply won't fly.
Now I don't know what to do. The most obvious answer would be to seek another post-doc in a different field, but I have a family, and it's getting increasingly difficult to relocate every few years. With 1 year left on my post-doc, I plan to try to integrate new topics in my research, but I am not familiar with the literature outside of my area of expertise, and I don't know if it can be a feasible plan at all.
So my question is: if you had to change research direction without leaving your current team/position, how would you approach it?
I realize it's a broad question, so please let me know if it is too broad, I will try to focus the scope of the answer further.
Edit to answer questions in the comments.
Q: Do you agree with them? How come you didn't notice you work on an obsolete topic?
A: In hindsight, I do agree with their assessment. The "boom" of publications was ~20 years ago, and, while there are still teams working on this, they are all people that were there during the boom. In fact, what I was told was "while we do work on it, the topic is so mature that it doesn't make sense to hire someone today to work on it". I guess the reason why I didn't see it coming is that the people around me were enthusiastic of my work, and told me that it would be easy to land a permanent position afterwards.