Skip to content

TDesign auto import not working with Less modifyVars #474

Closed
@KawaiiZapic

Description

@KawaiiZapic

Describe the bug

TDesign auto import always try to import components from tdesign but not from tdesign/esm, that will cause the component directly import the processed css file instead of less source file, as the result the modifyVars will not working with this.

Reproduction

https://stackblitz.com/edit/vitejs-vite-69ucy1

System Info

System:
    OS: Linux 5.10 Ubuntu 20.04.4 LTS (Focal Fossa)
    CPU: (16) x64 AMD Ryzen 7 5700U with Radeon Graphics
    Memory: 2.32 GB / 7.77 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 16.11.1 - ~/.nvm/versions/node/v16.11.1/bin/node
    Yarn: 1.22.18 - ~/.yarn/bin/yarn
    npm: 8.15.0 - ~/project/node_modules/.bin/npm

Used Package Manager

yarn

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions