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

kurtwerbrouck
Posts: 12
Joined: Tue Feb 16, 2021 2:37 pm

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

Postby kurtwerbrouck » Mon Jul 06, 2026 8:07 pm

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.

User avatar
krzychb
Espressif staff
Espressif staff
Posts: 428
Joined: Sat Oct 01, 2016 9:05 am
Contact:

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

Postby krzychb » Tue Jul 07, 2026 5:41 am

Hello kurtwerbrouck,
Maybe you still have "json" in CMakeLists.txt, see https://documentation.espressif.com/pro ... ocols.html

kurtwerbrouck
Posts: 12
Joined: Tue Feb 16, 2021 2:37 pm

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

Postby kurtwerbrouck » Tue Jul 07, 2026 7:30 pm

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

Who is online

Users browsing this forum: No registered users and 1 guest