LESS CSS Error “Cannot call method ‘charAt’ of undefined”

September 11th, 2012 by admin Leave a reply »

If you are writing .LESS files for your CSS you will probably run into this error at some point, especially if you are using multiple less files through its @import function.  This file really means that somewhere, probably buried down inside the less files you are importing has a problem.  The way I have found to fix this issue is to comment out your @import line and then run again and see if it tells you anything.  I found that by doing this it pointed me exactly where I needed to go and I was able to fix my issue and continue on, hope this helps.


Leave a Reply