Check the less "imports" in your custom themes. They all must match the pattern @import 'foo/_bar.less';
Pay attention at two things:
- File path must be wrapped in double quotssingle quotes ("'), not in single qoutsdouble quotes ('")
- File path must end with ".less"