Libraries are out there to make the job of coding simpler and faster whilst producing more legible code that is easier to maintain months to years down the road.
That's the ideal, but these days delivery on that promise is... lacking. MAYBE I've been dealing with HTML/CSS/JS/PHP too much lately, but these are the types of issues that just didn't happen "back in the day". Even the crappiest compilers from the '80's wouldn't link code into the executable you weren't using. These are the types of problems that only showed up in interpreted languages, and back then you couldn't even build a useful program with those -- at least on microcomputer technology. Despite decades of trying.
It's only really the past ~20 years that interpreted languages -- or near interpreted -- have returned to prominence and these types of problems show up again.
But there's more to it than that -- people are now diving for frameworks and packages before they even know enough about the underlying language TO EVEN KNOW IF THEY NEED ONE! See the mind-numbing asshattery that is bootcrap for the pinnacle of this stupidity -- where somehow an entire generation of programmers have been suckered into believing that writing two to ten times the markup and as much CSS as you'd have without the framework (not even counting the size of that framework in the total) is somehow "easier", "more productive", or "better for collaboration".
You know what's easier, more productive, and better for collaboration? Clean simple code without endless pointless bloated dependencies!
In that way with full stack JavaScript and the concept of "packages" we're getting code out of places that's so poorly slopped together from other people's work, the people who "wrote" it don't even understand how it works!
A stunning example of this is the "package that broke half the web" from the steaming pile of developer ineptitude that was kik. Not that I personally was aware of any websites or programs it actually broke -- half the web being a clickbait headline for it. The function when his package came down that most commonly broke things was a "simple' left pad.
Except it wasn't simple. It was a poorly written convoluted mess that looked more like somebody who didn't know JavaScript just blindly ported with no changes the code from the legendary K&R C book.
People are using these packages blindly but nobody is poking their head into them to understand how they work, why they work, where they could go wrong, how to maintain them if the original maintainer says "screw it I'm done", or any other sane and rational practice that USED to be the core of dealing with any situation where you were at the hands of someone else's coding whims.
THEN they magically expect automated tools to do it for them? DERP! That's just going full Pakled.
You never go full Pakled.
Even the simplest projects now require endless pointless packages to do things that you shouldn't even be wasting a package to do, all to cover up for the fact that nobody seems to know how to do anything for themselves anymore. It then tacks on that to fix ANYTHING you have to worry about forking the existing package or upstream submitting a change -- NEITHER is all that desirable a situation since the former BREAKS that easy collaboration notion, and the latter more often than not is either too much of a pain in the ass to bother with, or throws you into direct conflict with its creator.
Which is why instead of classic interpreted language spaghetti code, we now have spaghetti dependencies tossed together by people who are usually too green around the gills to be coding unsupervised in the first place.
But of course by perpetuating the "nobody working on it REALLY knows what they are doing" it lets certain types of employers continue to treat their line programmers like toilet tissue. If the job can be done by a scrub fresh out of college, why would you ever keep an employee around long enough to risk having to give them a raise when colleges churn out a new class of naive young hopefuls every year?
Similar to the businessman's joke -- if women get paid less for the same job in fields where the result is equal, why would you ever hire a man? (pokes head into accounting, marketing, development, and graphics departments) ... Oh.