Skip to content

dependency postcss-less CssSyntaxError: Unknown word, request upgrade to v5+ #14326

@malei0311

Description

@malei0311

Environments:

  • Prettier Version: 2.8.4
  • Running Prettier via: CLI
  • Runtime: NodeJS v16.15.1
  • Operating System: macOS

Steps to reproduce:

test.less

@prefix: foo;

@{prefix}-title{
  color: red;
}
prettier -c -w test.less

Expected behavior:

no Css SyntaxError

Actual behavior:

SyntaxError: CssSyntaxError: Unknown word

postcss-less has fix the issue at postcss-less@5

image

upgrade prettier dependencies postcss-less@3 -> postcss-less@5 can fix the bug.

details: shellscape/postcss-less#159

Metadata

Metadata

Assignees

No one assigned

    Labels

    locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions