cancel
Showing results for 
Search instead for 
Did you mean: 

How to fix Bad "composer.json" file detected ?

How to fix Bad "composer.json" file detected ?

Hi,

 

Magento Version : 2.2.4

 

I had developed one extension and need to test it before upload on magento marketplace so for that i started to test first using this tool "https://github.com/magento/marketplace-tools" but in that i got error as following : 

"Bad "composer.json" file detected. Please consult the "Name your component" section of the PHP Developer Guide for more information."

I tried to fix this error all ways that available into online but still not got proper solution.

Please suggest me how can i fix it ?

Thanks in advance.

2 REPLIES 2

Re: How to fix Bad "composer.json" file detected ?

Hello @yagnik_solanki,

 

Have you added composer.json file in extension directory? Let me know

 

--
If my answer is useful, please Accept as Solution & give Kudos

Re: How to fix Bad "composer.json" file detected ?

Yes, i have added composer.json file into extension package.

 

Thanks for reply,

 

I have got solution and now it fixed.