Closed herobrine30396 closed 11 months ago
It looks like this hasn't been updated to use the new LibreTiny naming yet. You may need to use the external fork for the time being: https://github.com/libretiny-eu/ESPAsyncWebServer
Well, even after using the fork, I'm still getting the error. While compiling, I also get this:
.pio/libdeps/cb3l/ESPAsyncWebServer-esphome/src/ESPAsyncWebServer.h:70:1: error: expected declaration before '}' token
70 | } WebRequestMethod;
| ^
.pio/libdeps/cb3l/ESPAsyncWebServer-esphome/src/ESPAsyncWebServer.h:70:3: error: 'WebRequestMethod' does not name a type
70 | } WebRequestMethod;
| ^~~~~~~~~~~~~~~~
*** [.pio\build\cb3l\src\main.cpp.o] Error 1
Never mind. The problem was that the AsyncWebServer library was conflicting with the WebServer library. I'll close the issue now
I added the library ESPAsyncWebServer-esphome which is listed as a compatible library in the docs. But I get this error in ESPAsyncWebServer.h
Here is the code: