bootstrap-less-port
bootstrap-less-port copied to clipboard
Error evaluating function `each`
{
"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
}
Pretty much any each function is having issues, across all .less files
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?
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?
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.