If you're good, and nobody knows it, you're screwed. That was true forty years ago, and it's still true today.
You are
slightly better off than if you are not "good". At least you have raw materials in your possession.
A lot of people don't even have that.
However, if you direct your major effort towards making sure people know how good you are, you're screwed, unless sales is your thing.
If you direct your major effort toward making sure that people know how good you are, sales will eventually become your thing. (Consider it learning on the job, in a way.)
If you're good at technology, you have to realize that the half life of technical know how is about 18 months. You have to keep learning.
Every now and then, you run into fundamentals that you can use for about ten years. For me, the last such thing was the relational model of data. That changes, but real slowly. And it's real powerful.
I milked C++, Windows, and the object oriented paradigm of software development from 1992 through 2010. What's that, 18 years? Not too bad by your time line. I consider myself fortunate that it lasted that long.
There are still a lot of commercial projects in C++. And there are still a lot of Windows applications being written, even in C++. But the market for technology services and software development has changed for the worse in that time frame. Which is where my involvement with it pinched off, in 2010.
Today even the smallest, most bush league companies with almost no management expertise attempt to run software development like a factory effort. In particular they don't wish to deal with individuals who can carry a large part of the project themselves.
They see immense risk in this model and they really don't want to have powerful programmers working for them. Even when it is really the only feasible way of getting something done on their financial terms.
This is the era of the weakling, cowed software developer and the play-pretend team effort where everyone regardless of merit is "equal". The push-around milquetoast who works within a strict methodology and bows to his masters is the desired model of candidate.