bootstrap-less-port icon indicating copy to clipboard operation
bootstrap-less-port copied to clipboard

Error evaluating function `each`

Open Jany-M opened this issue 5 years ago • 4 comments

{ "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 avatar May 08 '20 17:05 Jany-M

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

Jany-M avatar May 08 '20 17:05 Jany-M

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?

seanCodes avatar May 08 '20 19:05 seanCodes

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?

Jany-M avatar May 08 '20 20:05 Jany-M

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.

seanCodes avatar May 08 '20 21:05 seanCodes