🐛 | Drupal core | ValueError: Path cannot be empty in /var/www/consult/core/modules/locale/locale.module on line 1112
🇪🇸Spain rzb Barcelona
I faced the same problem after deploying to production, and could not reproduce in any other environment, even copying the production DB to local env.
I guess the solution mentioned by @nikhil_110 only masks the root cause of the problem, but it is safe to protect the website from 500 errors in the case there is no js path to read.
Here is a little patch to apply it.
🇪🇸Spain rzb Barcelona
Updated the part for the manual update of the module versions to provide the Drupal 9 way of doing, since the mentioned functions are now deprecated and absent from Drupal 10.
🇪🇸Spain rzb Barcelona
Please find attached a patch to activate the multilingual support if language module is enabled.