Error: JSON5: invalid character '\"' on DSpace 9.2

22 views
Skip to first unread message

Lewatle Johannes Phaladi

unread,
Feb 13, 2026, 3:36:27 AM (5 days ago) Feb 13
to DSpace Technical Support
Hello DSpace Colleagues,

I am getting the following error when running $ npm run build:prod
I have edited this file en.json5 very minimal edits and when running $ npm run build:prod get this error  Error: JSON5: invalid character '\"'

I have downloaded new file en.json5 and renamed the original one and run $ npm run build:prod but still getting same error message, is there steps needed to clear the error 

Regards,
Lewatle 

DSpace Technical Support

unread,
Feb 13, 2026, 5:22:38 PM (4 days ago) Feb 13
to DSpace Technical Support
Hello Lewatle,
What versions of npm and node do you currently have installed?  First, please make sure that you're using a supported version of Node.js for DSpace 9.2. If you could also provide a more complete stack trace from the JSON5 error you're seeing, that may help narrow the problem down. 

In the meantime, one thing you could try is cleaning up any cached dependencies before trying to build again:$ npm run clean$ npm install

Last, you could check if you have any auto-linting settings that may have unexpectedly changed the format of your `en.json5` .
  Lia

Lewatle Johannes Phaladi

unread,
Feb 16, 2026, 3:37:34 AM (2 days ago) Feb 16
to DSpace Technical Support
Hi Lia,

Thanks very much for detail steps to follow, I will follow up and return if there is any clarity needed. currently I edited en.json5 and en.6df91a40acb9c0a2215511dde892945b.json from /dspace-ui-deploy/dist/server/assets/i18n and restarted pm2, and update was done. That is temporary solution.

Regards,
Lewatle  
Reply all
Reply to author
Forward
0 new messages