Here is the error I am getting. I tried to upgrade prismjs, but no luck.
I am using nodejs v14.
Code: Select all
TypeError: Cannot read property 'comment' of undefined
(anonymous function)
node_modules/prismjs/components/prism-jsx.js:32
29 | Prism.languages.jsx.tag.inside['tag'].pattern = /^<\/?[^\s>\/]*/i;
30 | Prism.languages.jsx.tag.inside['attr-value'].pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i;
31 | Prism.languages.jsx.tag.inside['tag'].inside['class-name'] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/;
> 32 | Prism.languages.jsx.tag.inside['comment'] = javascript['comment'];
| ^ 33 |
34 | Prism.languages.insertBefore('inside', 'attr-name', {
35 | 'spread': {
View compiled
./node_modules/prismjs/components/prism-jsx.js
node_modules/prismjs/components/prism-jsx.js:145
142 | walkTokens(env.tokens);
143 | });
144 |
> 145 | }(Prism));
146 |