cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to load the "Magento_Checkout/js/view/summary" component

Failed to load the "Magento_Checkout/js/view/summary" component

There is an error on the checkout page:

console-output-handler.js:34 [2018-10-10 09:43:41] [ERROR] Failed to load the "Magento_Checkout/js/view/summary" component.

console-output-handler.js:34 [2018-10-10 09:43:47] [ERROR] Failed to load the "Magento_Checkout/js/view/estimation" component.

I have done everything on a thread here: https://github.com/magento/magento2/issues/12679

and still not working.

When I remove our custom theme it works.

There is no custom templates for checkout page, there is only a custom header:

default.xml

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>

    
      <!--To add custom logo-->
        <referenceBlock name="logo">
            <arguments>
                <argument name="logo_file" xsi:type="string">images/logo.png</argument>
                <argument name="logo_img_width" xsi:type="number">300</argument>
                <argument name="logo_img_height" xsi:type="number">78</argument>
            </arguments>
        </referenceBlock>

        <referenceContainer name="header.container">
              <block name="customer.section.config" class="Magento\Customer\Block\SectionConfig"
               template="Magento_Customer::js/section-config.phtml"/>
        <block name="customer.customer.data"
               class="Magento\Customer\Block\CustomerData"
               template="Magento_Customer::js/customer-data.phtml"/>
         
            <block class="Magento\Framework\View\Element\Template" name="custom_header" as="custom_header" template="Magento_Theme::html/customheader.phtml"  before="-">
      
         <referenceBlock name="top.links">
            <block class="Magento\Theme\Block\Html\Header" name="header" as="header" before="-">
            
            </block>
        </referenceBlock>

            </block>     
        </referenceContainer>


     <referenceContainer name="header.container">
            <container name="header.panel.wrapper" htmlClass="panel wrapper" htmlTag="div" before="-">
                <container name="header.panel" label="Page Header Panel" htmlTag="div" htmlClass="panel header">
                    <block class="Magento\Framework\View\Element\Template" name="skip_to_content" template="Magento_Theme::html/skip.phtml">
                        <arguments>
                            <argument name="target" xsi:type="string">contentarea</argument>
                            <argument name="label" translate="true" xsi:type="string">Skip to Content</argument>
                        </arguments>
                    </block>
                    <block class="Magento\Store\Block\Switcher" name="store_language" as="store_language" template="Magento_Store::switch/languages.phtml"/>
                    <block class="Magento\Customer\Block\Account\Navigation" name="top.links">
                        <arguments>
                            <argument name="css_class" xsi:type="string">header links</argument>
                        </arguments>
                    </block>
                </container>
            </container>
            <container name="header-wrapper" label="Page Header" as="header-wrapper" htmlTag="div" htmlClass="header content">
                <block class="Magento\Theme\Block\Html\Header\Logo" name="logo">
                    <arguments>
                        <argument name="logo_img_width" xsi:type="number">189</argument>
                        <argument name="logo_img_height" xsi:type="number">64</argument>
                    </arguments>
                </block>
            </container>
        </referenceContainer>





<container name="some.container" as="someContainer" label="Some Container" htmlTag="div" htmlClass="some-container" >
 <referenceBlock name="top.links">
         
        </referenceBlock>
</container>



        <move element="minicart" destination="custom_header"/>
        <move element="top.search" destination="custom_header"/>
        <move element="some.container" destination="custom_header" />
        <move element="logo" as="logo" destination="custom_header"/>
         <move element="header.links" as="headerLinks" destination="custom_header"/>       
   <move element="copyright" destination="footer-container"/>




     <referenceContainer name="main">

            <container name="content.top" label="Main Content Top"/>
            <container name="content" label="Main Content Area"/>
            <container name="content.aside" label="Main Content Aside"/>
            <container name="content.bottom" label="Main Content Bottom"/>
        </referenceContainer>


        <referenceContainer name="page.bottom.container">
            <container name="page.bottom" label="Before Page Footer" htmlTag="div" htmlClass="content"/>
        
        <block class="Magento\Framework\View\Element\Template" as="before.footer" name="before_footer" template="Magento_Theme::html/before_footer.phtml" />
       
        </referenceContainer>
        <referenceContainer name="footer-container">
            <block class="Magento\Framework\View\Element\Template" as="vendor.footer" name="vendor" template="Magento_Theme::html/footer.phtml"> <block class="Magento\Framework\View\Element\Html\Links" name="footer_links"> <arguments> <argument name="css_class" xsi:type="string">footer links</argument> </arguments> </block> <block class="Magento\Cms\Block\Block" name="footer_myaccount"> <arguments> <argument name="css_class" xsi:type="string">footer_myaccount</argument> </arguments> </block> </block> <referenceBlock name="report.bugs" remove="true"/> <referenceBlock name="footer" remove="true"/> <referenceBlock name="show_part" remove="true"/> <referenceBlock name="header.panel" remove="true"/> <referenceBlock name="catalog.compare.sidebar" remove="true"/> <referenceBlock name="catalog.compare.link" remove="true"/> <referenceBlock name="related.product.addto.compare" remove="true"/> <referenceBlock name="view.addto.compare" remove="true"/> <referenceBlock name="upsell.product.addto.compare" remove="true"/> </referenceContainer> </body> </page>