ESPUI icon indicating copy to clipboard operation
ESPUI copied to clipboard

'LittleFS' was not declared in this scope

Open daniel-frenkel opened this issue 1 year ago • 4 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

daniel-frenkel avatar May 04 '23 02:05 daniel-frenkel

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

daniel-frenkel avatar Jun 05 '23 15:06 daniel-frenkel

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?

iangray001 avatar Jun 05 '23 15:06 iangray001

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.

FilipLupaescu avatar Jun 14 '23 15:06 FilipLupaescu

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

MartinMueller2003 avatar Jun 19 '23 19:06 MartinMueller2003