ESP WiFi.h gives error 'eth_config_t' does not name a type;

I'm running 1.8.10 and once I deleted the instructions from the outside of the loop() curly braces, it compiled fine for me on Arduino Uno