While static content generation process run an exception generates
Preconditions
Magento Version : 2.3.5 EE
ElasticSuite Version : >= 2.9.0
Environment : Production
Third party modules :
Steps to reproduce
- Run setup:static-content:deploy
Expected result
- Static content generation done
Actual result
Compilation from source */public_html/vendor/smile/elasticsuite/src/module-elasticsuite-indices/view/adminhtml/web/js/jquery.json-viewer.js failed
RuntimeException: Unclosed string at position: 616 in */public_html/vendor/tedivm/jshrink/src/JShrink/Minifier.php:479
Stack trace:
0 */public_html/vendor/tedivm/jshrink/src/JShrink/Minifier.php(238): JShrink\Minifier->saveString()
1 */public_html/vendor/tedivm/jshrink/src/JShrink/Minifier.php(147): JShrink\Minifier->loop()
2 */public_html/vendor/tedivm/jshrink/src/JShrink/Minifier.php(115): JShrink\Minifier->minifyDirectToOutput('/\n * jQuery j...', Array)
3 */public_html/vendor/magento/framework/Code/Minifier/Adapter/Js/JShrink.php(27): JShrink\Minifier::minify('/\n * jQuery j...')
4 */public_html/vendor/magento/framework/View/Asset/PreProcessor/Minify.php(60): Magento\Framework\Code\Minifier\Adapter\Js\JShrink->minify('/\n * jQuery j...')
5 */public_html/vendor/magento/framework/View/Asset/PreProcessor/Pool.php(77): Magento\Framework\View\Asset\PreProcessor\Minify->process(Object(Magento\Framework\View\Asset\PreProcessor\Chain))
6 */public_html/vendor/magento/framework/View/Asset/Source.php(152): Magento\Framework\View\Asset\PreProcessor\Pool->process(Object(Magento\Framework\View\Asset\PreProcessor\Chain))
7 */public_html/vendor/magento/framework/View/Asset/Source.php(105): Magento\Framework\View\Asset\Source->preProcess(Object(Magento\Framework\View\Asset\File))
8 */public_html/vendor/magento/framework/View/Asset/File.php(158): Magento\Framework\View\Asset\Source->getFile(Object(Magento\Framework\View\Asset\File))
9 */public_html/vendor/magento/framework/App/View/Asset/Publisher.php(74): Magento\Framework\View\Asset\File->getSourceFile()
10 */public_html/vendor/magento/framework/App/View/Asset/Publisher.php(62): Magento\Framework\App\View\Asset\Publisher->publishAsset(Object(Magento\Framework\View\Asset\File))
11 */public_html/vendor/magento/module-deploy/Service/DeployStaticFile.php(89): Magento\Framework\App\View\Asset\Publisher->publish(Object(Magento\Framework\View\Asset\File))
12 */public_html/vendor/magento/module-deploy/Service/DeployPackage.php(189): Magento\Deploy\Service\DeployStaticFile->deployFile('js/jquery.json-...', Array)
13 */public_html/vendor/magento/module-deploy/Service/DeployPackage.php(133): Magento\Deploy\Service\DeployPackage->processFile(Object(Magento\Deploy\Package\PackageFile), Object(Magento\Deploy\Package\Package))
14 */public_html/vendor/magento/module-deploy/Service/DeployPackage.php(102): Magento\Deploy\Service\DeployPackage->deployEmulated(Object(Magento\Deploy\Package\Package), Array, false)
15 [internal function]: Magento\Deploy\Service\DeployPackage->Magento\Deploy\Service{closure}()
16 */public_html/vendor/magento/framework/App/State.php(187): call_user_func_array(Object(Closure), Array)
17 */public_html/vendor/magento/module-deploy/Service/DeployPackage.php(103): Magento\Framework\App\State->emulateAreaCode('adminhtml', Object(Closure))

- [Screenshot, logs]
Most helpful comment
We had the same issue on a fresh installation of Magento 2.3.5 open source. The fix you mentioned worked for us.
Best wishes