Using imports in LESS

I’m playing around with bootstrap and am using the LESS sources of bootstrap in my project. When I tried to run the code I encountered the following error statement:

EcmaError: TypeError: Cannot call method “split” of undefined (less-1.2.1.js#347)

What happened was that I tried to import a file that imports files and this is obviously not allowed in LESS.