Setting permissions for developer mode / production mode

I have installed magento (using tar file from magento) and changed to developer mode. Read the docs in https://devdocs.magento.com/guides/v2.2/config-guide/prod/prod_file-sys-perms.html In default or developer mode, the following directories must be writable by the user: vendor app/etc pub/static var Any other static resources generated/code generated/metadata var/view_preprocessed In file manager, I can see those folders are marked as…

Magento 2: Type Error occurred when creating object

I had created a custom API for adding new customer in Magento 2.3. I had injected dependency injection and passed the method to create the customer account. But it gives me below error: main.CRITICAL: Type Error occurred when creating object: MyModule\Customapi\Model\Addcustomer, Too few arguments to function MyModule\Customapi\Model\Addcustomer::__construct(), 7 passed in /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 116 and…