Please Help - Compilation error: 'ledcSetup' was not declared in this scope

I’m working through the ESP32 starter kit and it TUTs this is only the 2nd TUT
2.2 fading LED and i can not get past this.
I’ve followed all the steps repeatedly and this keeps happening.

C:\Users\tymed\OneDrive\Documents\ESP32\esp32-starter-kit-main\c\codes\2.2_fading_led\2.2_fading_led.ino: In function ‘void setup()’:
C:\Users\tymed\OneDrive\Documents\ESP32\esp32-starter-kit-main\c\codes\2.2_fading_led\2.2_fading_led.ino:6:3: error: ‘ledcSetup’ was not declared in this scope
6 | ledcSetup(0, 5000, 8); // Configure the PWM channel (0) with 5000Hz frequency and 8-bit resolution
| ^~~~~~~~~
C:\Users\tymed\OneDrive\Documents\ESP32\esp32-starter-kit-main\c\codes\2.2_fading_led\2.2_fading_led.ino:7:3: error: ‘ledcAttachPin’ was not declared in this scope; did you mean ‘ledcAttach’?
7 | ledcAttachPin(ledPin, 0); // Attach the LED pin to the PWM channel
| ^~~~~~~~~~~~~
| ledcAttach

exit status 1

Compilation error: ‘ledcSetup’ was not declared in this scope

Please provide a screenshot of your Arduino IDE.
And confirm that if you have selected ESP32 as the board?

Hi - yes all the previous step were followed and re-checked

The issue is being fixed by us and it will take some time to complete.
The current solution is:
Follow our screenshots and install ESP32, choosing version 2.0.14.


The installation will take a long time, so please be patient. After successful installation, you can upload the code again and see if the error message still appears.

Appreciate your reply and assistance
Will try this

  • Thanks

The above recommendation ESP32 - V2014 has worked - thank you

Please advise when the fix has been done

Sure.It may take three to four weeks to fix the problem.