I have a such seat map template that is registered in my seat_map.js
<?xml version="1.0" encoding="utf-8"?>
<templates xml:space="preserve">
<t t-name="my_module.SeatMapTemplate" owl="1">
//////////
</t>
</templates>
export class SeatMapTemplate extends Component {
// My code
}
SeatMapTemplate.template = "my_module.SeatMapTemplate";
registry.category("components").add("seat_map_modal", SeatMapTemplate);
But when I try to render this template in other template using t-component, it shows error
<t t-if="showSeatMap">
<t t-component="seat_map_component" />
</t>
Caused by: TypeError: Cannot read properties of undefined (reading 'name')
at TicketSearchResults.template (eval at compile (http://localhost:8069/web/assets/1761-d0cd20b/web.assets_common.min.js:2075:421), <anonymous>:197:159)
I correctly imported all in my manifest
seat_map_componentin thet-componentpart, instead ofseat_map_modal?