Skip to content

catalog/product/composite/configure.js does not support RequireJS mixins because it doesn't return a module #39908

Open
@miljkovic5

Description

@miljkovic5

Preconditions and environment

Preconditions

  • Magento 2.4.x (tested on 2.4.7)
  • Admin panel, product composite configuration popup
  • JS module: Magento_Catalog/catalog/product/composite/configure.js

Steps to reproduce

  1. Try to create a mixin for ProductConfigure via config.mixins in requirejs-config.js
  2. Magento ignores the mixin
  3. I'm forced to patch window.ProductConfigure using a setTimeout or poller pattern

Expected result

The file should return the ProductConfigure constructor as an AMD module to extend it via proper config.mixins mechanism.

Actual result

The file does not return anything, so require('Magento_Catalog/catalog/product/composite/configure') returns undefined, and RequireJS mixins cannot be applied.

Additional information

This is backward-compatible and would allow proper mixin usage without breaking global usage (window.ProductConfigure = ProductConfigure).

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

Labels

Issue: needs updateAdditional information is require, waiting for responseReported on 2.4.7Indicates original Magento version for the Issue report.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

Type

No type

Projects

Status

Needs Update

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions