Wifi 8 lora32v2 and encoder

I have done a program due Arduino IDE to this board using encoder.h library and it works ( more or less).
A cup of months later I reopen the project in order to correct some bugs, and my surprise was that nothing works, it can’t compile;
The error report:
In file included from C:\Proyectos terminados\Medidor Rotatory\Rotatory_esp32\Rotatory_esp32.ino:5:0:
C:\Users\Admin\Documents\Arduino\libraries\Encoder/Encoder.h:61:11: error: ‘IO_REG_TYPE’ does not name a type
volatile IO_REG_TYPE * pin1_register;
C:\Users\Admin\Documents\Arduino\libraries\Encoder/Encoder.h:62:11: error: ‘IO_REG_TYPE’ does not name a type
volatile IO_REG_TYPE * pin2_register;
[…Similar stuff…]

C:\Users\Admin\Documents\Arduino\libraries\Encoder/Encoder.h: In constructor ‘Encoder::Encoder(uint8_t, uint8_t)’:
exit status 1
Error compilando para la tarjeta Heltec WiFi LoRa 32(V2).

The code is the same, and if i try to compile it to an arduino board it compile perfect.

What can it be? maybe a new version of the board on arduino ide?
A problem with the encoder.h library?

On the code i just try to put the line :
on the very beggining, doesn´t work.

The example no interruptions that comes with the library have the same.issue.