Problem with ESP Async WebServer\n'

Dear forum,
I got the following error:
rror: Invalid ‘c:\Users\XXX\Documents\PlatformIO\Projects\XXX\platformio.ini’ (project configuration file): ‘Source contains parsing errors: ‘c:\Users\Laurent\Documents\PlatformIO\Projects\Ajax_Central_DCC\platformio.ini’
[line 18]: ‘ESP Async WebServer\n’’
Can you help ? thanks

my platformio.ini is:

[env:esp32doit-devkit-v1]
platform = espressif32
board = esp32doit-devkit-v1
framework = arduino
monitor_speed=115200
lib_deps =
ESP Async WebServer
AsyncTCP

You need to indent the libraries by at least 2 spaces so that it is seen as a list belonging to lib_deps.

Also only specifying the library name is outdated and bad practice. The full owner, name and version restrictions should be given like the documentation shows.

So you should write instead

lib_deps =
   me-no-dev/ESP Async WebServer@^1.2.3
   me-no-dev/AsyncTCP@^1.1.1

See registry.