How to resolve conflicting component names

szabiaura
Posts: 15
Joined: Wed Jul 08, 2020 5:27 am

How to resolve conflicting component names

Postby szabiaura » Thu Nov 24, 2022 10:34 pm

Hi,

I have a component in my project called button. It uses the button component from the registry. When I try to build, I get this error:

Code: Select all

  ERROR: Cannot process component requirements.  Multiple candidates to
  satisfy project requirements:

    requirement: "button" candidates: "espressif__button, button"
How can I specify that I want the button component from the project, not the one from the registry?

Thanks,
Szabi

ESP_kumekay
Posts: 6
Joined: Thu Nov 03, 2016 3:43 pm

Re: How to resolve conflicting component names

Postby ESP_kumekay » Mon Feb 20, 2023 1:41 pm

Hello, Szabi, thank you for the question.

Usually, this problem happens if you have

Code: Select all

EXTRA_COMPONENT_DIRS
set in your project. Dependencies in EXTRA_COMPONENT_DIRS have the same priority as ones installed with the component manager.

To solve it you can either remove the dependency from idf_component.yml manifest or move your local component to the "components" directory in your project.


Related GitHub issue: https://github.com/espressif/idf-compon ... /issues/25

Who is online

Users browsing this forum: No registered users and 183 guests