TypeError: Cannot read property 'comment' of undefined

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
mbisarya
Posts: 4
Joined: 22 Nov 2015, 18:39

15 Aug 2021, 04:59

Hi, I have a basic licence of Ultima React. Executing "npm start" results in following error (version ultima-react-6.1.0).
Version ultima-react-6.0.1 renders correctly.

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': {

Thanks,

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

17 Aug 2021, 12:32

Could you please change version of prismjs version to

Code: Select all

"prismjs": "1.9.0"
in package.json and delete node_modules and package-lock.json. Then npm i.

mbisarya
Posts: 4
Joined: 22 Nov 2015, 18:39

18 Aug 2021, 04:47

Thanks for the quick response. The issue is partially resolved. I'm no longer getting the compilation error but page is not rendering correctly.

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

19 Aug 2021, 13:08

You should run this command

Code: Select all

sass --watch public/assets:public/assets --no-source-map
Also you can check https://www.primefaces.org/ultima-react ... umentation for more information like this command.

mbisarya
Posts: 4
Joined: 22 Nov 2015, 18:39

20 Aug 2021, 04:32

Thanks. Issue has been resolved.

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

28 Dec 2021, 08:40

Glad to hear, thanks a lot for the update!

Best Regards,

Post Reply

Return to “Ultima - PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests