Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefinedError: Cannot read property 'trim' of undefined #11

Open
xiongbao opened this issue Jul 31, 2019 · 5 comments
Open

undefinedError: Cannot read property 'trim' of undefined #11

xiongbao opened this issue Jul 31, 2019 · 5 comments

Comments

@xiongbao
Copy link

undefinedError: Cannot read property 'trim' of undefined

@seven-phases-max
Copy link
Owner

Just a error message text is totally useless. Please at least show the code you get the error with (and the more information never hurts - see for example https://github.com/necolas/issue-guidelines/blob/master/CONTRIBUTING.md#bug-reports.

@fengqinxingtao
Copy link

$ lessc --functions px2rem.less
undefinedError: Cannot read property 'trim' of undefined

@Coande
Copy link

Coande commented Apr 24, 2020

同样遇到,请问解决了没?

@AllenWilliamson
Copy link

Getting the same error. Looks like it has to do with args being undefined in lib/tinyargs.js

parse_: function(args) {

@webchimp
Copy link

webchimp commented Feb 5, 2022

Hello, Im having the same issue, I'm doing the following:

I took the example code from the repository:

.function {
    .foo(@x) {
        return: @x * 2;
    }
}

div {
    width: foo(21em); // -> 42em
}

Then I run the following command (Im in windows using lessc 4.1.2):

lessc --functions test.less

Then i get this message: undefinedError: Cannot read properties of undefined (reading 'trim')

Is there any recommendation to avoid this?

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants