Skip to content

@media print throwing an error after upgrading from LESS 4.4.0 to 4.4.1 #4362

@kgetz-arista

Description

@kgetz-arista

To reproduce:

Upgrade from 4.4.0 to 4.4.1.

Current behavior:

10:26:32  [error] ✗ Build failed in 15.95s
10:26:32  [error] error during build:
10:26:32  [vite:css-post] [lightningcss minify] Unexpected token Function("print")
10:26:32  
10:26:32  12984|    flex-direction: row;
10:26:32  12985|  }
10:26:32  12986|  @media print(max-width: 992px) {
10:26:32     |        ^
10:26:32  12987|    .main-view {
10:26:32  12988|      display: flex;
10:26:32  
10:26:32      at minifyCSS

Expected behavior:

Vite build should work as usual.

Environment information:

  • less version: 4.4.1
  • nodejs version: 22.14.0
  • operating system: Windows 11, Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions