John Davidson

php - Getting error after installing pwa module in magento 2.3.4

0 comments
Message:


I am using magento 2.3.4 and now trying to install pwa using below command


composer require magento/pwa


So I have installed successfully this module in backend now when I am running command of compilation then showing error of Magento\Framework\GraphQl\Query\Uid like below



Class Magento\Framework\GraphQl\Query\Uid does not exist

Class Magento\CatalogGraphQlAux\Model\Resolver\CustomAttributes\Interceptor generation error: The requested class did not generate p

roperly, because the 'generated' directory permission is read-only. If --- after running the 'bin/magento setup:di:compile' CLI comm

and when the 'generated' directory permission is set to write --- the requested class did not generate properly, then you must add t

he generated class object to the signature of the related construct method, only.



I have checked for this class but not found in any version of magento2.



My Answer:
It seems like there might be an issue with the generation of the Interceptor class for Magento\Framework\GraphQl\Query\Uid.

To resolve this issue, you can try the following steps:

1. Make sure that the 'generated' directory has the correct permissions. You can set the permissions to write by running the following command:

chmod -R 777 generated


2. After setting the correct permissions, try running the compilation command again:

bin/magento setup:di:compile


3. If the issue persists, you can try adding the generated class object to the signature of the related construct method. You can do this by adding the following code to the constructor of the related class:

\Magento\Framework\GraphQl\Query\Uid $uid


4. If the class Magento\Framework\GraphQl\Query\Uid still does not exist, you may need to check if there are any missing dependencies or if there is a compatibility issue with the PWA module and Magento 2.3.4.

If none of the above steps resolve the issue, you may need to reach out to the PWA module developer or Magento support for further assistance.

Rate this post

4 of 5 based on 4947 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us