ReferenceError: Cannot access 'breadcrumb' before initialization
at eval (eval at compileToFunction (/Users/benoit/Desktop/projects/practice/aem-styleguide/tests/htl-engine-latest/node_modules/@adobe/htlengine/src/compiler/Compiler.js:281:22), <anonymous>:108:31)
at Generator.next (<anonymous>)
at Runtime.run (/Users/benoit/Desktop/projects/practice/aem-styleguide/tests/htl-engine-latest/node_modules/@adobe/htlengine/src/runtime/Runtime.js:86:17)
The error comes from the line const var_testVariable0 = (breadcrumb["items"]["size"]) > (0); that uses the constant breadcrumb right before it is instantiated.
Since the last update, with most of the WCM Core Components and the default data, an error occured, similar to all components erroring.
For instance for the breadcrumb component:
Part of the generated JS for it would be:
The error comes from the line
const var_testVariable0 = (breadcrumb["items"]["size"]) > (0);
that uses the constantbreadcrumb
right before it is instantiated.