This will not work with Arduino IDE 1.6.5 (or below) or with non ESP32-S2/S3 devices (e.g. Arduino UNO, Arduino MEGA, etc.). To use this library you need to have Arduino core for the ESP32 installed.
ESP32 driver library for TWAI / CAN for Arduino using ESP-IDF drivers. I reccomend using TI SN65HVD230 transreceiver (or similair) as hardware. Tested on ESP32 and ESP32-S3.