BLYNK_WRITE compiler errors

Hi There
I am upgrading a project that runs for 2 years already
I am trying to add the reading of virtual pins from BLYNK app
This project ran on ESP8266 while adding BLYNK_WRITE command the compiler
creates the following error with the ARDUINO 1.8.12 and 1.8.13 version

b_global:180:59: error: variable or field ‘BlynkWidgetWrite1’ declared void
b_global:180:24: error: ‘BlynkReq’ was not declared in this scope
b_global:180:71: error: expected primary-expression before ‘const’
exit status 1
variable or field ‘BlynkWidgetWrite1’ declared void

I will appreciate your assistance - I am working on this bug for a long time now
Zvika

• Add your sketch code. :point_up:Code should be formatted as example below.

Simply paste your code between ``` If you don’t format your code, your topic can be deleted by moderators.

#include <Esp.h>
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

// Blynk Dispaly App
char auth[] = "XXXXXXX";
//char ssid_B[] = "";
//char pass_B[] = "";
WidgetLED led20(V20);                   // Keep alive Blue Led 
#define Blynk_KeepaLive_time 1       // define x sec interval to send keep-a-Live to 

// This function will be called every time Slider Widget
// in Blynk app writes values to the Virtual Pin V1
BLYNK_WRITE(V1)
{
  int pinValue = param.asInt(); // assigning incoming value from pin V1 to a variable

  // process received value
}

void loop()

It would help if you posted your full code, rather than just a snippet.

Pete.