Magento – Magento 2: Uncaught TypeError: Cannot read property ‘*’ of undefined in (section-config.js:33)

addtocartjavascriptmagento-2.1magento2

It's duplicate question but I am facing the same issue while adding the product & removing items from the cart page.

I have spent almost a day to resolve but no luck hope someone could help me with this.

Error Message in the console:

Uncaught TypeError: Cannot read property '*' of undefined in (section-config.js:33)

Edit: I have run the deploy & deleted all the cache still issue persist.

Best Answer

I had this issue and found my way to this page several times.

I ran into this when a custom module links js in the html head from an xml layout and dev/js/enable_js_bundling + dev/js/minify_files are both set to 1, with JS deferred to the bottom of the page (either with a 3rd party plugin or dev/js/move_script_to_bottom as of 2.3.2).