Skip to content

Less compilation problems in Magento/backend theme #24004

Closed
@hostep

Description

@hostep

Description

This is similar issue as what was being reported in #23619
But this time it's for the Magento/backend theme.
The fact that there are errors in the less code might indicate that certain things aren't getting outputted in css properly. But without deeper research I can't confirm this yet.

Preconditions (*)

  1. Magento 2.3-develop branch (or any older released version)
  2. NodeJs (I'm using v8.16.0)
  3. PHP 7.2

Steps to reproduce (*)

  1. Setup a vanilla Magento installation
  2. Run npm install less@3.9.0
  3. Run rm -R var/view_preprocessed/* pub/static/*; bin/magento setup:static-content:deploy -f --theme=Magento/backend en_US
  4. Run node_modules/.bin/lessc -l var/view_preprocessed/pub/static/adminhtml/Magento/backend/en_US/css/styles-old.less

Expected result (*)

  1. Linting of the styles-old.less file shouldn't show any errors

Actual result (*)

  1. Linting of the styles-old.less file shows the following errors:
extend ' .data-table tbody tr:nth-child(odd) td' has no matches
extend ' .grid-actions .export .label' has no matches
extend ' .grid-actions .export .action-' has no matches
extend ' .col-570' has no matches

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: OtherFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentPriority: P3May be fixed according to the position in the backlog.Reproduced on 2.3.xThe issue has been reproduced on latest 2.3 releaseSeverity: S3Affects non-critical data or functionality and does not force users to employ a workaround.Triage: DoneHas been reviewed and prioritized during Triage with Product Managers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions