Skip to content

Build fails with PackageException due to outdated ESPAsyncWebServer (~2.0.7) dependency #33

Description

@xiaonote64-dev

What happened?

When trying to compile the latest release (1.3.0) or the master branch using PlatformIO in VSCode, the build fails during dependency resolution with this error:

PackageException: Package version X.X.X+sha.xxxx doesn't satisfy requirements: ~2.0.7
for ESPAsyncWebServer from https://github.com/Aircoookie/ESPAsyncWebServer.git

This happens because platformio.ini still contains this line:

https://github.com/Aircoookie/ESPAsyncWebServer.git @ ~2.0.7

This pins an old version from the Aircoookie fork that is no longer compatible with the current PlatformIO registry, which provides much newer versions (3.x+).

Simply removing or commenting out that line fixes the problem completely. Even better, adding these two lines to lib_deps works perfectly with modern WLED code:

ESP32Async/ESPAsyncWebServer
ESP32Async/AsyncTCP

After deleting the .pio folder and rebuilding, everything compiles without any issues.

Could you please update platformio.ini in the repository to remove the outdated dependency (or switch to the registry versions)? This would save new users from running into this common build error.

I've attached a screenshot of the error for reference.

Thanks a lot for your time and for maintaining this great project!

To Reproduce Bug

Steps to reproduce:

  1. Download the latest release (1.3.0) or clone the master branch from https://github.com/imeszaros/ledclock
  2. Open the project folder in VSCode with the PlatformIO extension installed
  3. Delete the .pio folder (if it exists) to ensure a clean build
  4. In PlatformIO sidebar, go to Project Tasks → General → Clean
  5. Then click Build (or run Project Tasks → [your environment, e.g. esp32dev] → Build)
  6. The build fails during "Resolving dependencies" with the PackageException error for ESPAsyncWebServer (~2.0.7)

Expected Behavior

Image

Install Method

Self-Compiled

What version of WLED?

Trying to build from source (release 1.3.0 / master branch), no installed version yet because build fails

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions