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
/tmp/node_modules/css-tree/lib/lexer/structure.js:112
throw new Error('Wrong value in `' + name + '` structure definition');
^
Error: Wrong value in `CDC` structure definition
at processStructure (/tmp/node_modules/css-tree/lib/lexer/structure.js:112:23)
at getStructureFromConfig (/tmp/node_modules/css-tree/lib/lexer/structure.js:134:39)
at Lexer (/tmp/node_modules/css-tree/lib/lexer/Lexer.js:125:35)
at createSyntax (/tmp/node_modules/css-tree/lib/syntax/create.js:70:20)
at Object.exports.create (/tmp/node_modules/css-tree/lib/syntax/create.js:81:12)
at Object.<anonymous> (/tmp/node_modules/css-tree/lib/syntax/index.js:14:38)
at Module._compile (module.js:573:30)
at Object.Module._extensions..js (module.js:584:10)
at Module.load (module.js:507:32)
at tryModuleLoad (module.js:470:12)
Some modules out there may add additional functions to the Array prototype and this then prevents the css-tree module from being loaded.
Can be fixed by adding this line to css-tree/lib/lexer/structure.js on line 102:
if(!structure.hasOwnProperty(key)){continue;}
Not sure exactly what the structure.js code is doing here, so not sure if the proposed fix is safe for your code, but my hunch says it is.
The text was updated successfully, but these errors were encountered:
The following code produces an error when loading css-tree:
The error produced:
Some modules out there may add additional functions to the Array prototype and this then prevents the css-tree module from being loaded.
Can be fixed by adding this line to
css-tree/lib/lexer/structure.js
on line102
:Not sure exactly what the structure.js code is doing here, so not sure if the proposed fix is safe for your code, but my hunch says it is.
The text was updated successfully, but these errors were encountered: