Skip to content

Unable to load plugin (yarn pnp issue?) #4367

Description

@maddrag0n

To reproduce:

import { execSync } from 'node:child_process';

execSync(
  'lessc --clean-css="--s1 --advanced --compatibility=ie8" index.less style.css',
  { stdio: 'inherit' },
);

Current behavior:

It seems that less cannot find clean-css.

Unable to load plugin clean-css please make sure that it is installed under or at the same level as less

Expected behavior:

Expected that less would find clean-css.

Environment information:

  • less version: 4.4.1
  • nodejs version: v22.15.0
  • operating system: macos 14.6.1 (23G93)
  • yarn version: 4.9.1
  • less-plugin-clean-css version: 1.6.0
  • clean-css version: 5.3.3

Additional context

  • packages installed as dev deps (yarn add -D) in yarn workspace using pnp
  • script is run with yarn dotenvx run tsx ./script.ts

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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