Skip to content

Type derivation fails when using less variables. #122

Closed
@wzono

Description

@wzono

Describe the bug
Type derivation fails when using less variables.

To Reproduce
Steps to reproduce the behavior:

  1. Install dependencies & prepare the tsconfig & declare type & use workspace's ts version.
    image
    image

  2. create index.ts & create index.module.less & fill style without less variables.
    image
    image
    Now it works well

  3. Add less variables to the less file.
    image

  4. See error
    image

Expected behavior
When I use less variables, it should be work well too.

Screenshots
See ** To Reproduce **

Desktop (please complete the following information):

  • OS: [e.g. iOS]: MacOS
  • Browser [e.g. chrome, safari]: Chrome
  • Version [e.g. 22]: 90.0.4430.93

Additional context
These less variables are injected through less-loader.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions