Page 1 of 1

How to resolve conflicting component names

Posted: Thu Nov 24, 2022 10:34 pm
by szabiaura
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

Re: How to resolve conflicting component names

Posted: Mon Feb 20, 2023 1:41 pm
by ESP_kumekay
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