- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Minifyer getting errors
Hi
I am trying to minify javascript on Magento 2 website.
When I enabled minify JS and switched to production mode, I ran the setup:di:compile. However it's not been completed, as there was an error.
Would you be able to suggest to know what is causing this issue?
#0 htdocs/vendor/tedivm/jshrink/src/JShrink/Minifier.php(238): JShrink\Minifier->saveString() #1 htdocs/vendor/tedivm/jshrink/src/JShrink/Minifier.php(147): JShrink\Minifier->loop() #2 htdocs/vendor/tedivm/jshrink/src/JShrink/Minifier.php(115): JShrink\Minifier->minifyDirectToOutput(';(function (glo...', Array) #3 htdocs/vendor/magento/framework/Code/Minifier/Adapter/Js/JShrink.php(27): JShrink\Minifier::minify(';(function (glo...') #4 htdocs/vendor/magento/framework/View/Asset/PreProcessor/Minify.php(50): Magento\Framework\Code\Minifier\Adapter\Js\JShrink->minify(';(function (glo...') #5 htdocs/vendor/magento/framework/View/Asset/PreProcessor/Pool.php(77): Magento\Framework\View\Asset\PreProcessor\Minify->process(Object(Magento\Framework\View\Asset\PreProcessor\Chain)) #6 htdocs/vendor/magento/framework/View/Asset/Source.php(152): Magento\Framework\View\Asset\PreProcessor\Pool->process(Object(Magento\Framework\View\Asset\PreProcessor\Chain)) #7 htdocs/vendor/magento/framework/View/Asset/Source.php(105): Magento\Framework\View\Asset\Source->preProcess(Object(Magento\Framework\View\Asset\File)) #8 htdocs/vendor/magento/framework/View/Asset/File.php(157): Magento\Framework\View\Asset\Source->getFile(Object(Magento\Framework\View\Asset\File)) #9 htdocs/vendor/magento/framework/App/View/Asset/Publisher.php(73): Magento\Framework\View\Asset\File->getSourceFile() #10 htdocs/vendor/magento/framework/App/View/Asset/Publisher.php(61): Magento\Framework\App\View\Asset\Publisher->publishAsset(Object(Magento\Framework\View\Asset\File)) #11 htdocs/vendor/magento/module-deploy/Service/DeployStaticFile.php(92): Magento\Framework\App\View\Asset\Publisher->publish(Object(Magento\Framework\View\Asset\File)) #12 htdocs/vendor/magento/module-deploy/Service/DeployPackage.php(189): Magento\Deploy\Service\DeployStaticFile->deployFile('js/moment.js', Array) #13 htdocs/vendor/magento/module-deploy/Service/DeployPackage.php(136): Magento\Deploy\Service\DeployPackage->processFile(Object(Magento\Deploy\Package\PackageFile), Object(Magento\Deploy\Package\Package)) #14 htdocs/vendor/magento/module-deploy/Service/DeployPackage.php(107): Magento\Deploy\Service\DeployPackage->deployEmulated(Object(Magento\Deploy\Package\Package), Array, false) #15 [internal function]: Magento\Deploy\Service\DeployPackage->Magento\Deploy\Service\{closure}() #16 htdocs/vendor/magento/framework/App/State.php(186): call_user_func_array(Object(Closure), Array) #17 htdocs/generated/code/Magento/Framework/App/State/Interceptor.php(89): Magento\Framework\App\State->emulateAreaCode('frontend', Object(Closure), Array) #18 htdocs/vendor/magento/module-deploy/Service/DeployPackage.php(108): Magento\Framework\App\State\Interceptor->emulateAreaCode('frontend', Object(Closure)) #19 htdocs/vendor/magento/module-deploy/Process/Queue.php(300): Magento\Deploy\Service\DeployPackage->deploy(Object(Magento\Deploy\Package\Package), Array) #20 htdocs/vendor/magento/module-deploy/Process/Queue.php(219): Magento\Deploy\Process\Queue->execute(Object(Magento\Deploy\Package\Package)) #21 htdocs/vendor/magento/module-deploy/Process/Queue.php(162): Magento\Deploy\Process\Queue->assertAndExecute('frontend/Calcul...', Array, Array) #22 htdocs/vendor/magento/module-deploy/Strategy/QuickDeploy.php(76): Magento\Deploy\Process\Queue->process() #23 htdocs/vendor/magento/module-deploy/Service/DeployStaticContent.php(109): Magento\Deploy\Strategy\QuickDeploy->deploy(Array) #24 htdocs/setup/src/Magento/Setup/Console/Command/DeployStaticContentCommand.php(140): Magento\Deploy\Service\DeployStaticContent->deploy(Array) #25 htdocs/vendor/symfony/console/Command/Command.php(245): Magento\Setup\Console\Command\DeployStaticContentCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #26 htdocs/vendor/symfony/console/Application.php(835): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #27 htdocs/vendor/symfony/console/Application.php(185): Symfony\Component\Console\Application->doRunCommand(Object(Magento\Setup\Console\Command\DeployStaticContentCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Minifyer getting errors
Hello @tvgarden
are you using firebear imoport export module?
if yes then remove it or update it.
hope it will help you.
if help you then mark as a solution.
Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Minifyer getting errors
hi @Sunil Patel , no, this website is not using that module.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Minifyer getting errors
Mageworx_DeliveryDate is using moment.js.
Does this mean we are unable to minify JS files with this plugin turned on? It's out customer's choice and we can't force them to stop using it.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Minifyer getting errors
Hello @tvgarden
moment js create isssue with js minify.
Two choise
1) remove module
2) ask into support
hope it will help you if help you then mark as solution.
Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer