Skip to content

mageSwatchRenderer is undefined on PDP #36937

Open
@Mugentoki

Description

@Mugentoki

Preconditions and environment

  • Magento version: 2.4.5-p2
  • Clean installation with demo data
  • Blank or Luma theme

Steps to reproduce

After setting up the fresh M2 instance with demo data

  1. Go to any product with swatches (size, color)
  2. In developer console, try to access the swatch renderer with
    jQuery('[data-role=swatch-options]').data('mageSwatchRenderer')

Expected result

Swatch renderer should be initialized and data be accessible
image

Actual result

Swatch renderer is undefined
image

Additional information

I still had a clean installed M2 version 2.3.4 around, and there it's working just fine.

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions