Why am I getting "expected primary-expression before '.' token"?
Change three lines right after loop() to these:

  int chk = dht.read(DHTPIN);
  float hum = dht.humidity;
  float temp = dht.temperature;


Change 'DHT' into lower case letters. DHT is the class and dht is the object of the DHT class.

Also you have multiple copy of these libraries: DHT.h and Esp8266WiFi.h. Check your cuurent directory where your Arduino code is and also Documents->Arduino->Libraries directory. These libraries should be in the  Documents->Arduino->Libraries directory.