Sx127x issue SPI communication

I’ve used this example on my esp32 board, I successfully build and upload this code without any errors or warnings, but when I monitor my device - first it send this message and wait till I reboot my device
image
and then it continuously rebooting sending this error -
ESP_ERROR_CHECK failed: esp_err_t 0x10a (ESP_ERR_INVALID_VERSION) at 0x4008632c
0x4008632c: _esp_error_check_failed at /home/razdvakoma/esp/esp-idf/components/esp_system/esp_err.c:42

file: “./main/main.c” line 85
func: app_main
expression: sx127x_create(spi_device, &device)

abort() was called at PC 0x4008632f on core 0
0x4008632f: _esp_error_check_failed at /home/razdvakoma/esp/esp-idf/components/esp_system/esp_err.c:43

Backtrace: 0x4008198a:0x3ffb4ad0 0x40086339:0x3ffb4af0 0x4008be1e:0x3ffb4b10 0x4008632f:0x3ffb4b80 0x400d52fe:0x3ffb4ba0 0x400e8c5f:0x3ffb4c40 0x40089109:0x3ffb4c60
0x4008198a: panic_abort at /home/razdvakoma/esp/esp-idf/components/esp_system/panic.c:408

0x40086339: esp_system_abort at /home/razdvakoma/esp/esp-idf/components/esp_system/esp_system.c:137

0x4008be1e: abort at /home/razdvakoma/esp/esp-idf/components/newlib/abort.c:46

0x4008632f: _esp_error_check_failed at /home/razdvakoma/esp/esp-idf/components/esp_system/esp_err.c:43

0x400d52fe: app_main at /home/razdvakoma/esp_projects/lora-lib-test/main/main.c:85 (discriminator 1)

0x400e8c5f: main_task at /home/razdvakoma/esp/esp-idf/components/freertos/port/port_common.c:141 (discriminator 2)

0x40089109: vPortTaskWrapper at /home/razdvakoma/esp/esp-idf/components/freertos/port/xtensa/port.c:142

So do I have to configure SPI communication ar what