Hi Raviraj, If you are getting this on "out of the box" DSpace 7 (with no customizations), then it's possible that you built an earlier version of DSpace 7 and "yarn" has an old build cached that is resulting in failures. Yarn does some local caching to speed up repeated builds, but these sometimes can result in odd build errors if the cached information is incompatible with the latest build.
If this is the problem, you should be able to fix things by cleaning the cache & reinstalling dependencies/rebuilding: yarn clean yarn install yarn build:prod (The "yarn clean" command removes the local Yarn cache and all dependencies, which is why you have to rerun the "yarn install" after it) If this doesn't work, then it's likely you've made some sort of local customizations that are causing this error. Or maybe you are trying to use a version of Node & Yarn that is not currently compatible with DSpace 7. If so, let us know on this list (or on dspace-tech, the tech support list) more about your setup and maybe we can help figure out what is going on. Tim ________________________________ From: [email protected] <[email protected]> on behalf of Raviraj Sukhadiya <[email protected]> Sent: Tuesday, February 28, 2023 9:30 PM To: DSpace Community <[email protected]> Subject: [dspace-community] yarn build:prod failed with error : Command failed with exit code 1 Dear All, when I perform in frontend at the build stage using the below command #yarn build:prod get an error as per the below screenshot, can anyone give hint to resolve it? [error.JPG] Thanks Raviraj -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- You received this message because you are subscribed to the Google Groups "DSpace Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-community/ec43851e-f7f5-45bb-8367-077cdce0e79bn%40googlegroups.com<https://groups.google.com/d/msgid/dspace-community/ec43851e-f7f5-45bb-8367-077cdce0e79bn%40googlegroups.com?utm_medium=email&utm_source=footer>. -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- You received this message because you are subscribed to the Google Groups "DSpace Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-community/PH0PR22MB3274824CE497DBB8818EF559EDAD9%40PH0PR22MB3274.namprd22.prod.outlook.com.
