You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In less for Node.js, if you @import a less file that exists but is empty (strictly - 0 characters exactly), you get a JavaScript error @ parser.js:190: str is not a String, and thus has no "replace" method.
A trivial workaround is putting a space in the file, so this is no big deal.
Activity
tylerball commentedon Sep 27, 2011
With current version of less I don't even get an error importing a blank .less file. The parser chokes and omits all subsequent imports.
matthew-dean commentedon Nov 24, 2011
Yes, that's what I'm seeing. If it tries to import a blank file, it doesn't import anything else after that.
jnewman commentedon Dec 20, 2011
On Chromium 15, I'm getting the same error (well, lackof) with any amount of white space in a blank file.
richardhenry commentedon May 31, 2012
Also reported in #540
lukeapage commentedon Jul 18, 2012
similar if not the same as #179
lukeapage commentedon Aug 12, 2012
I've made a test case with an empty file and imported that empty file and then put a class with one property and it works..
So either this is fixed or I need a better test case.. anyone want to give it a go with the latest source and confirm?
If you find its still a problem I'll re-open.