Closed OscarVanL closed 10 months ago
@matthew-dean
This code does not exist in the Less codebase or distributed runtime:
if (ctx.stack) { return sys.error(stylize(ctx.stack, 'red')) }
It's possible you're getting a real error, but surfacing the error is causing another error in a misconfigured Node environment, but Less does not utilize the sys
module.
Thanks, apologies for the misplaced issue. The error stack made it look like this was coming from less itself.
I think you're right that this was the result of a botched nodejs install. I unfortunately don't know what my exact fix was, but after spending time mucking around with my container's nodejs install it went away.
I will close the issue.
To reproduce:
I am using the python-slim-bookworm docker container, which is based on debian 12 bookworm.
I've installed nodejs 18 via instructions at https://github.com/nodesource/distributions#installation-instructions
I installed less via:
Current behavior: When running less against my CSS file (bootstrap v2.1.1 CSS file available here) I get the following error:
Expected behavior:
Clearly an error is happening somewhere, but there's something wrong with the
sys
import. The common denominator is me updating nodejs to v18Environment information:
less
version: Latest version from npm (4.2.0 as of creating issue)nodejs
version: Node.js v18.17.1operating system
: Debian 12 bookworm slim