Skip to content

Less compilation fails when referencing an relative path #22627

@dverkade

Description

@dverkade

Preconditions

  1. Magento version 2.3.x & 2.3-develop

Steps to reproduce

  1. Add a reference to a lib source file in the theme(e.g. Luma) less files, such as:
    @import "../../../../../../../lib/web/css/source/lib/_responsive.less";
  2. Try to compile the less with the following command:
    php -f bin/magento -- setup:static-content:deploy -f --jobs 1 en_US -t Magento/luma

Expected result

  1. Less files are compiling because the importing a reference to a file which exists.

Actual result

Compilation from source: /var/www/html/magento2/app/design/frontend/Magento/blank/web/css/styles-l.less
Path "../../../../../lib/web/css/source/lib/_responsive.less" cannot be used with directory "/var/www/html/magento2/app/design/frontend/Magento/luma/web/i18n/enfrontend/Magento/blank/en_US                                

Metadata

Metadata

Assignees

No one assigned

    Labels

    Community Insider: CreamComponent: CssIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P4No current plan to fix. Fixing can be deferred as a logical part of more important work.Progress: ready for devReported on 2.3.xIndicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S4Affects aesthetics, professional look and feel, “quality” or “usability”.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions