s00500 / ESPUI

A simple web user interface library for ESP32 and ESP8266

Home Page:https://valencia.lbsfilm.at/midterm-presentation/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'LittleFS' was not declared in this scope

daniel-frenkel opened this issue · comments

Using PlatformIO, I am unable to compile due to the following error:

.pio/libdeps/esp32dev/ESPUI/src/ESPUI.cpp:29:15: error: 'LittleFS' was not declared in this scope
   File root = LittleFS.open(dirname);

My library dependencies are as follows:

lib_deps = 
	s00500/ESPUI@^2.2.1
	me-no-dev/ESP Async WebServer @ ^1.2.3
        me-no-dev/AsyncTCP @ ^1.1.1
	lorol/LittleFS_esp32 @ ^1.0.6

Anyone know this? I've been fighting with LittleFS forever and the docs really need to be updated to reflect what to actually do

Seems to compile for me with your versions. Can you try adding:

lib_ldf_mode = deep

into your platformio.ini to see if that helps?

As discussed here.

Remove lorol/LittleFS_esp32 @ ^1.0.6 from lib_deps= in platform.ini. LittleFS has been integrated to Arduino core.
Also remove

     {
       "owner": "lorol",
       "name": "LittleFS_esp32",
       "version": "^1.0.6",
       "platforms": ["espressif32"]
     }

form library.json of any other library that depends on it.
That's how I fixed it anyway.

Dont forget, the lib_exclude is important:

lib_ignore =
ESP Async WebServer ; force the use of the esphome version
AsyncTCP ; force the use of the esphome version
LittleFS_esp32 ; force the use of the ESP32 built into the core version