Diamond Not working

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
flarcobtd
Posts: 5
Joined: 20 Aug 2021, 13:53

20 Aug 2021, 14:40

Hi, I just purchased the Diamond template, but it's not working.
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 | 

mcandu
Posts: 107
Joined: 20 Jan 2021, 16:31

23 Aug 2021, 09:29

Hi,

Could you please delete node_modules and package-lock.json and update prismjs version to

Code: Select all

"prismjs": "1.9.0"
on package.json. Then

Code: Select all

npm install

Code: Select all

npm start

Code: Select all

sass --watch public/assets:public/assets --no-source-map
Also we'll update the Diamond and get rid of this error as soon as possible.

Best Regards,

flarcobtd
Posts: 5
Joined: 20 Aug 2021, 13:53

23 Aug 2021, 15:45

Thanks, that worked.

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

19 Apr 2022, 02:42

Glad to hear, thanks for the update!

Best Regards,

Post Reply

Return to “Diamond - PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests