You
were able to drill and burn oil without modern technology. These days, pretty much all those easily accessible wells are drained and the only oil left is in harder to access wells that you'd never even find without modern technology. That's why we're fracking and messing around with oil sands and building offshore oil rigs etc.
We also had windmills long before we had electricity. And the west has plenty of rare earth deposits, despite the name they're not actually that rare. They're just expensive to refine and the refinement process causes a lot of pollution. China does it cheaper, polluting itself in the process and that's why we don't do it. If they were to stop giving us access to these minerals we could restart our own production. It's not just used for electronics by the way, it's also used for magnets which are a key component in electric motors/generators, so without rare earth minerals you're not generating electricity regardless of having oil.
This whole argument of yours is asinine.