When I try to enable my module with bin/magento module:enabled I am getting an error in console:
Zend_Json_Exception Decoding Failed: Syntax error
How can I fix this? When I enabled the same module in local server everything worked fine.
When I try to enable my module with bin/magento module:enabled I am getting an error in console:
Zend_Json_Exception Decoding Failed: Syntax error
How can I fix this? When I enabled the same module in local server everything worked fine.
Looks like that one of custom modules used in your application has incorrect syntax in composer.json.
For detect incorrect composer.json try debug Magento\Framework\Module\PackageInfo::load or put var_dump($key); before $packageData = \Zend_Json::decode($jsonData[$key]); in /vendor/magento/framework/Module/PackageInfo.php and run uninstall again.
Reference here.