cancel
Showing results for 
Search instead for 
Did you mean: 

Child theme error in magento 2 ?

Child theme error in magento 2 ?

HI guys,

               After applying the child theme the magento frontend is not loading properly. Getting some error. I mentioned in below.When am applying parent theme no error i could see in console log. Can any one guide me?

 

[Error] TypeError: $(quickViewCf.product_container).cartQuickView is not a function. (In '$(quickViewCf.product_container).cartQuickView(quickViewCf)', '$(quickViewCf.product_container).cartQuickView' is undefined)
(anonymous function) (aero:2251)
execCb (require.js:1650)
check (require.js:866)
(anonymous function) (require.js:1113)
(anonymous function) (require.js:132)
(anonymous function) (require.js:1156)
each (require.js:57)
emit (require.js:1155)
check (require.js:917)
(anonymous function) (require.js:1113)
(anonymous function) (require.js:132)
(anonymous function) (require.js:1156)
each (require.js:57)
emit (require.js:1155)
check (require.js:917)
enable (require.js:1143)
init (require.js:774)
callGetModule (require.js:1170)
completeLoad (require.js:1544)
onScriptLoad (require.js:1671)

1 REPLY 1

Re: Child theme error in magento 2 ?

 

 

Fix for Magento 2 Themes Child Theme Error

 

The error occurs due to missing or improperly loaded JavaScript (cartQuickView). Steps to fix:

  1. Check theme inheritance in theme.xml.
  2. Ensure required JS files from the parent theme are included in the child theme.
  3. Run:
    php bin/magento setup:upgrade
    php bin/magento setup:static-content:deploy -f
    php bin/magento cache:flush
  4. Debug with browser tools and copy missing parent files if needed.

This should resolve the issue.