django - Cannot compile less with attr() -
i've encountered error while compiling using gulp, tried count using html attribute data-list-count
when saved file, gulp gave error
potentially unhandled rejection [2] typeerror: cannot read property 'denominator' of undefined @ dimension.operate (/node_modules/less/lib/less/tree/dimension.js:87:58) @ operation.eval (/node_modules/less/lib/less/tree/operation.js:31:18) @ expression.eval (/node_modules/less/lib/less/tree/expression.js:31:37) @ expression.eval (/node_modules/less/lib/less/tree/expression.js:31:37) @ value.eval (/node_modules/less/lib/less/tree/value.js:18:30) @ rule.eval (/node_modules/less/lib/less/tree/rule.js:56:33) @ ruleset.eval (/node_modules/less/lib/less/tree/ruleset.js:149:50) @ ruleset.eval (/node_modules/less/lib/less/tree/ruleset.js:149:50) @ ruleset.eval (/node_modules/less/lib/less/tree/ruleset.js:149:50) @ ruleset.eval (/node_modules/less/lib/less/tree/ruleset.js:149:50)
html(django)
<ul data-list-count="4"> <li><a href="#live-chat">{% trans "live chat" %}</a></li> <li><a href="#email-marketing">{% trans "email marketing" %}</a></li> <li><a href="#marketing-automation">{% trans "marketing automation" %}</a></li> <li><a href="#mobile">{% trans "mobile" %}</a></li> </ul>
less:
li { width: (100% / attr(data-list-count)); }
i'm sure less line causing it, why , how fix ?
Comments
Post a Comment