ESP32 from book Learn ESP32 with Arduino IDE (error)

I'm getting an error when I verify my code. I have copied from the book. I get "lcdcSetup was not declared in this scope. Below is the code. I'm lost could someone point out what is wrong?

// the number of the LED pin
const int ledPin = 16; // 16 corresponds to GPOI16

// setting PMW properties
const int freq = 5000;
const int ledChannel = 0;
const int resolution = 8;

void setup() {
  // configure LED PMW functionitites
  ledcSetup(ledChannel, freq, resolution);

  // attach channel to the GPIO to be connected
  ledcAttachPin(ledPin, ledChanne);
}

void loop() {
  // increase the LED brightness
  for(int dutyCycle = 0; dutyCycle <= 255; dutyCycle++){
    // changing the LED brightness with PMW
    ledWrite(ledChannel, dutyCycle);
    delay(15);
  }

  // decress the LED brightness
  for(int dutyCycle = 0; dutyCycle >= 255; dutyCycle--){
    // changing the LED brightness with PMW
    ledWrite(ledChannel, dutyCycle);
    delay(15);
  
  }

}

From the migration document
Screenshot 2024-10-04 at 17.45.27
Simple fix is drop boards back to 2.0.17

Thank you very much for your help.

Good to hear, don't forget to mark my post solved.

alternatively you could update your LCD code from ESP32 Arduino Core 2.x to 3.x
see Espressif ESP32 LED Control (LEDC)

How do I mark it solved?

Thank you, I plan on that after I finish the book. There are other examples using this same code. Now that I have encounter this. I'm sure I will encounter other things like this seeing how the book is a few years old. Also, is this normal in the micro controllers?

updating libraries etc without ensuring backwards compatibility is common in programming environments - both microcontroller, PC based, etc
I have various ESP32 projects - most use ESP32 Arduino Core 3.x but some require 2.x because sensor libraries etc have not been updated to use 3.x