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

Error evaluating function each #25

Open
Jany-M opened this issue May 8, 2020 · 4 comments
Open

Error evaluating function each #25

Jany-M opened this issue May 8, 2020 · 4 comments

Comments

@Jany-M
Copy link

Jany-M commented May 8, 2020

{
"resource": "\node_modules\bootstrap-less-port\less\_tables.less",
"owner": "generated_diagnostic_collection_name#1",
"severity": 8,
"message": "error evaluating function each: error evaluating function theme-color-level: Cannot read property 'name' of undefined",
"startLineNumber": 101,
"startColumn": 1,
"endLineNumber": 101,
"endColumn": 1
}

@Jany-M
Copy link
Author

Jany-M commented May 8, 2020

Pretty much any each function is having issues, across all .less files

@Jany-M Jany-M changed the title _tables.less: error evaluating function each: error evaluating function theme-color-level: Cannot read property 'name' of undefined Error evaluating function each May 8, 2020
@seanCodes
Copy link
Owner

Hey @Jany-M, thanks for opening an issue and sorry to hear you’re having issues.

A few questions: What version of Less are you using? What tool/framework/command are you using to compile Less? Have you changed/customized any of the variables?

@Jany-M
Copy link
Author

Jany-M commented May 8, 2020

No worries and thank you for your work!

I use the Easy Compile extension for VS Code, it uses Less 3.8.1.
I've asked the dev to update to v3.11.1.
In case the version was the issue, could you maybe add in your README the min version requirement for the compiler?

@seanCodes
Copy link
Owner

seanCodes commented May 8, 2020

I use the Easy Compile extension for VS Code, it uses Less 3.8.1.

Bummer, it looks like that’s the issue. 🙁 A minimum of Less 3.9.0 is needed since v2.0.0.

I've asked the dev to update to v3.11.1.

Thanks for opening that issue! I’ve given it a 👍 so hopefully it gets more visibility.

In case the version was the issue, could you maybe add in your README the min version requirement for the compiler?

I checked the readme and it looks like the Less 3.9.0 requirement is already there—but I can see how it’s easy to miss. Maybe I should bold it to make it stand out more, or add a “requirements” section?

There might be a temporary solution though: you can install v1.0.0 of the port (equivalent to Bootstrap v4.1.3) and use that until the Easy Compile extension is updated. v1 is compatible with older versions of Less.

Alternatively, you could compile your Less using VS Code directly, using a custom task instead of an extension. If you go this route and run into an issues, let me know and I might be able to help out.

Hopefully this helps. Let me know if you have any other questions.

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

2 participants