Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does my project result in the "More than one component matched on this element." error?

I have the following project in a StackBlitz:

https://stackblitz.com/github/nickhodges/PhillyCCTodoApp/tree/Step20

I get this error:

Template parse errors:
More than one component matched on this element.
Make sure that only one component's selector can match a given element.

I have googled my little heart out, but can't seem to find a solution.

What does this error mean and how do I fix it?

I should note that the error only occurs in StackBlitz and not on my local machine.

like image 705
Nick Hodges Avatar asked Dec 23 '18 01:12

Nick Hodges


People also ask

What is Project compiler error reference?

A detailed reference, Project Compiler Error Reference describes all the compiler errors along with details on how to resolve issues. In versions of the software prior to Altium Designer 20.0, the project had to be manually compiled to build the Unified Data Model.

How do I add a project back in to a solution?

We can't tell - we do not know what you did last time it worked to stop it working. However, you can try adding it back in: Right click the solution in the Solution explorer, and select "Add...Existing Project".

How does MS Project identify critical tasks?

MS Project identifies "Critical" tasks based on Total Slack alone. If your project is a little complex (e.g. late constraints, deadlines, calendars) or you are in a negative-slack regime (behind schedule), then the collection of Critical tasks may not reflect the longest path.

Is there a manual compilation of the project involved?

There is no manual compilation of the project involved, it is all done automatically. The process of validating is integral to producing a valid netlist for a project.


1 Answers

Just in case anyone else runs into this with testing, I had the same component mocked out two different ways in the same test by accident. Both mocks had a selector on them. The testing failure output was unclear regarding the origin of the conflict. I spent a bunch of time looking through the trying to figure it out. Hope this saves someone else an hour or two :|

like image 199
Forrest Avatar answered Sep 18 '22 16:09

Forrest