If you can’t be replaced, you can’t be promoted.
Be replaceable. Being an expert in today’s technology won’t help you in a couple of years when a new technology arrives.
Doing nothing is an acceptable choice if you don’t want to move on. But it’s as risky a decision as picking the next generation of technology. Either one can leave you sitting in a dead end.