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
The template engine doesn't compile the next template without dev mode:
attrs()({tabindex: -1}),
Error: Only literal or function is allowed in template's body at 674:9
attrs()({
^
at Compiler.assert (/home/rakchaev/job/makeup/bem/node_modules/enb-bemxjst/node_modules/bem-xjst/node_modules/xjst/lib/xjst/compiler/base.js:180:9)
at Compiler.transformTemplates (/home/rakchaev/job/makeup/bem/node_modules/enb-bemxjst/node_modules/bem-xjst/node_modules/xjst/lib/xjst/compiler/base.js:648:8)
at Array.map (native)
at Compiler.translate (/home/rakchaev/job/makeup/bem/node_modules/enb-bemxjst/node_modules/bem-xjst/node_modules/xjst/lib/xjst/compiler/base.js:201:41)
at Object.translate (/home/rakchaev/job/makeup/bem/node_modules/enb-bemxjst/node_modules/bem-xjst/node_modules/xjst/lib/xjst/api.js:16:40)
at Compiler.translate (/home/rakchaev/job/makeup/bem/node_modules/enb-bemxjst/node_modules/bem-xjst/lib/bemhtml/compiler.js:121:35)
at Compiler.generate (/home/rakchaev/job/makeup/bem/node_modules/enb-bemxjst/node_modules/bem-xjst/lib/bemhtml/compiler.js:707:14)
at Object.generate (/home/rakchaev/job/makeup/bem/node_modules/enb-bemxjst/node_modules/bem-xjst/lib/bemhtml/api.js:16:40)
at require.declare.process (/home/rakchaev/job/makeup/bem/node_modules/enb-bemxjst/techs/bem-xjst.js:7:28)
at /home/rakchaev/job/makeup/bem/node_modules/enb-bemxjst/node_modules/sibling/lib/runner.js:22:48
This template body doesn't pass condition utils.isLiteral.
Because negative number is detected as UnaryExpression:
vovieque
changed the title
Template with negative number doesn't compile without dev mode
The template engine doesn't compile template with negative number without dev mode
Feb 9, 2015
The template engine doesn't compile the next template without dev mode:
This template body doesn't pass condition utils.isLiteral.
Because negative number is detected as UnaryExpression:
But positive number is detected as Literal:
The text was updated successfully, but these errors were encountered: