Even on the basic science level, Maxwell published his seminal treatise on classical electromagnetism in 1873, and it wasn't until 1881 that Heaviside published them in the form we know them today and that sort-of made people understand them. Semiconductors were sort-of known already in the early 1800s, but it wasn't until the, say, first half of the 20th century when we really started to understand them with the development of solid state physics (both theoy and experimental methods such as x-ray diffraction etc.).
So yes, while some aspects of lithography could have been developed in the 1800s, I think there was quite a huge gap between that and a whole lot of other things needed.
The logic is relatively easy, but the materials science needed to decide what to lithograph, using which materials, and in what order, is post-WWII, and probably couldn't have been invented much earlier.
It takes a lot of work to work out ideal doping factors and diffusion rates, estimate charge distributions across junctions, calculate propagation speeds, and eliminate leakage.
But more - the chemistry of semiconductor doping and deposition is often rather nasty, and it would have been a huge challenge to industrialise it before WWII.
1) the theoretical knowledge of how the devices worked, which enabled the creation of steps in the process that resulted in fully working devices
2) the ability do do each step repeatably and precisely and reliably.
- The electric arc furnace, from the late 19th century, enabled the large scale production of crude silicon.
- The crystal bar process, from 1925, is similar to the Siemens process developed in the 1950s for refining purified volatile silicon compounds to electronic-purity elemental silicon.
- The Czochralski process, from 1915, permitted the growth of large single crystals of purified silicon.
There's a great review article from 1981, available through sci-hub, if you want more details about the history of purified silicon electronic devices:
"Twenty Five Years of Semiconductor-Grade Silicon"
DOI: 10.1002/pssa.2210640102
But to answer your second question. I don't think we could have skipped the vacuum-tube era. It's because we already had applications for those sorts of electronics (and unreliable mechanical relays that were replaced with transistor switches) that researchers realized the potential for transistors in the first place. Even after the transistor was invented there was still a lot of research necessary to make them feasible in practice. The first one was germanium if I recall correctly and it took a while before silicon transistors were viable.
Edit: Also, sort of unrelated, non silicon semiconductors are still used a lot because they can switch faster, and different color LEDs use different semiconductors because they emit different colors of light, which is also related to why different color LEDs have different voltage drops.
Edit: what you buy as a typical discrete transistor is in fact integrated circuit which contains tens to thousands of parallel connected transistors.
Also I believe that photolitography-like processes were used before semiconductors (and I would not be too surprised if production of at least some mass manufactured valves involved photolitography).
For typical BJTs it depends on how you define "separate transistor". The structure in typical BJT has one contiguos junction, but its geometry is non-trivial enough that you can well think of it as multiple paralleled transistors.
https://www.youtube.com/watch?v=b--FKHCFjOM
Photolithography in general substantially pre-dates the development of the IC. We were using it to produce printing plates in the 19th century. Breakthroughs in chemistry made photolithographic PCB manufacture possible by the early 1940s. It took us another 20 years and a huge array of discoveries and inventions to finally start producing useful ICs.
Development of IC manufacturing required a very broad tech tree - better chemistry, better optics, better materials science, better process engineering and, most crucially, the invention of p-n junctions. Without the p-n junction, any effort to etch a practical integrated circuit is pretty much futile.
Anyway, perhaps the problem was more that (almost) nobody back then saw the potential of this technology.
If it happened before the Battle of Jena, we might have found ourselves in a world of technologically-ensconced monarchies.
I've always wondered: could we have discovered/invented photolithography earlier, and thereby started the integrated-circuit revolution earlier? As far as I can tell, there was nothing holding someone back from inventing it in the 1800s, even: they had access to all the relevant chemicals, and (in some countries) lenses were already precision-ground enough to serve the purpose down to some pretty tiny process-nodes. We wouldn't have had digital logic (no transistors), but we could have been making "electronic" watches, tiny AC-to-DC power converters, and other analogue ICs even back then.
But heck: suppose we had known the principles behind semiconductive materials back then, too. We could have passed right by the vacuum-tube era and started in on inventing digital ICs (and boolean algebra.) What could the 1800s have looked like then?
(Is there any well-known science-fiction story exploring this premise? I might give a shot to writing it, if not...)