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
Unlike web standard, currently type='text/javascript' attribute is required for inline, non-module scripts. While that may be necessary, for usability maybe the error message could be less cryptic.
Environment
any
Minimal Reproduction
Use an inline <script> tag in any html (other than .dhtml)
Logs & Additional Context
!! parse error /home/animation.html
90 | return val?.constructor === Object || Array.isArray(val) || typeof val == 'function'
91 | }
92 |
93 | // exec('font-size:${_.size + "px"};', data)
94 | export function exec(expr, data = {}) {
95 | const fn = new Function('_', 'return ' + expr)
^
SyntaxError: Unexpected token '.'. Expected a ';' following a class field.
at (/Users/Wolfgang
The text was updated successfully, but these errors were encountered:
This issue is related to #512 .
Describe the Bug
Unlike web standard, currently type='text/javascript' attribute is required for inline, non-module scripts. While that may be necessary, for usability maybe the error message could be less cryptic.
Environment
any
Minimal Reproduction
Use an inline <script> tag in any html (other than .dhtml)
Logs & Additional Context
!! parse error /home/animation.html
90 | return val?.constructor === Object || Array.isArray(val) || typeof val == 'function'
91 | }
92 |
93 | // exec('
font-size:${_.size + "px"}
;', data)94 | export function exec(expr, data = {}) {
95 | const fn = new Function('_', 'return ' + expr)
^
SyntaxError: Unexpected token '.'. Expected a ';' following a class field.
at (/Users/Wolfgang
The text was updated successfully, but these errors were encountered: