Skip to content

Magento 2.4 Failed to load the knockout component

Good morning, could someone help me with the error “Error loading the component “Custom_Module/js/customer-lines” that occurs to me when loading a JS knockout file, the error appears a few times, that is to say that sometimes the component is loaded

I have tried to solve the problem in many ways, but it does not work for me.

Phtml file that loads the js “app/code/Custom/Module/view/frontend/templates/lines.phtml”.

enter image description here

JS app/code/Custom/Module/view/frontend/web/js/customer-lines.js

enter image description here

Thank you for your attention if you help me I will be very grateful.