Earlier quoted context omitted.
> I've wasted so much time digging into tools that I've never used again. Don’t think of it this way. Learning new tools is almost never a waste of time, you just don’t know when you’ll need the lessons learned next. But you will.
What lessons do I learn from learning webpack? Or whatever the new way of bundling things in FE is called now? Compare that to understanding C or UNIX. There are skills that decay much slower than others.
It sounds like you got stuck learning more trivial things before you had a good foundation in something more substantial (like C or UNIX).
If it weren't for the rampant ageism in the industry, that job might be a perfect fit for someone in their 60s who has already written a few million lines of C and is happy to help less experienced people just get unblocked.
Instead it often falls to the "junior senior" because the "senior seniors" are all pushing 30 and need to work on portable skills.
(Just my observation of the industry, maybe your own case was different.)