Page 1 of 1

6.0.2 Failed to resolve component 'json' required by component 'esp-sr': unknown

Posted: Mon Jul 06, 2026 8:07 pm
by kurtwerbrouck
Hello

I upgraded to 6.0.2, but i have the next error when "build the project". I noticed that the cjson wasnt included in the 6.0.2.

"Removed Built-in JSON Component
The built-in json component has been removed from ESP-IDF. Users should migrate to using the espressif/cjson component from the IDF Component Manager."

So i included it in the yml file

dependencies:
espressif/cjson: "^1.7.19"

But still i have the next error

CMake Error at C:/Users/kurtw/esp/v6.0.2/esp-idf/tools/cmake/build.cmake:380 (message):
Failed to resolve component 'json' required by component 'esp-sr': unknown
name.

Any idea's on how to fix this? i dont need the esp-sr in my project.

When returning to 5.5.4, all works fine.

Re: 6.0.2 Failed to resolve component 'json' required by component 'esp-sr': unknown

Posted: Tue Jul 07, 2026 5:41 am
by krzychb
Hello kurtwerbrouck,
Maybe you still have "json" in CMakeLists.txt, see https://documentation.espressif.com/pro ... ocols.html

Re: 6.0.2 Failed to resolve component 'json' required by component 'esp-sr': unknown

Posted: Tue Jul 07, 2026 7:30 pm
by kurtwerbrouck
hello

cmakeList.txt:

idf_component_register(SRCS "WifiScan.c")
register_component()

idf_component

dependencies:
espressif/cjson: "^1.7.19"

WifiScan.c

#include <stdio.h>
#include <string.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/event_groups.h"
#include "esp_log.h"

#include "Kurtwifi.h"
#include "cJSON.h"

I believe all is setup correct according to the document, but no succes , error remains.

Kurt