I'm developing Magento 2 module. My
composer.json file contains a dependency (
php composer update in
app/code/<vendor>/<module> folder. It downloads
jsonmapper package and puts into
When I run
bin/magento setup:di:compile command it gives the error:
[RuntimeException] Source class "\Json" for "JsonMapper" generation does not exist.
So my question is how to avoid of code generation for vendor folder?
And if I'm using external dependencies in my Magento 2 module in a completely wrong way, then please point me to the right direction.