cancel
Showing results for 
Search instead for 
Did you mean: 

Installing ScandiPWA to Existing Magento 2 setup

Installing ScandiPWA to Existing Magento 2 setup

Hello, 

 

I am trying to ScndiPWA on Magento 2.4.2 but face up next error message:

sysadmin@DEV-Magento:/var/www/magento2$ sudo composer require scandipwa/spwa-app
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? y
Using version ^0.0.1 for scandipwa/spwa-app
./composer.json has been updated
Running composer update scandipwa/spwa-app
Loading composer repositories with package information
yIn Laminas\DependencyPlugin\DependencyRewriterV2::onPrePoolCreate
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - scandipwa/performance 1.4.3 requires magento/module-inventory-api * -> could not be found in any version, there may be a typo in the package name.
    - scandipwa/spwa-app 0.0.1 requires scandipwa/performance ^1.4.3 -> satisfiable by scandipwa/performance[1.4.3].
    - Root composer.json requires scandipwa/spwa-app ^0.0.1 -> satisfiable by scandipwa/spwa-app[0.0.1].

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

first of all Magento works fine. But it seems magento/module-inventory-api is not installed or maybe it installed but not supported version by ScandiPWA? How can I check the version of magento/module-inventory-api?

 

Thank you!

 

 

2 REPLIES 2

Re: Installing ScandiPWA to Existing Magento 2 setup

Hi,

 

Below worked for me. Please try and see. 

 

To use Magento 2 as a data source for ScandiPWA, you are required to make sure that it is using the correct Composer dependencies. The list of your application Composer dependencies can be found in your ScandiPWA application's composer.json file.

 

You can copy the dependencies defined in require field of your application's composer.json to your Magento server's root composer.json and execute the composer update command.

 

Thank you.

Re: Installing ScandiPWA to Existing Magento 2 setup

Hi All,

 

I'm trying to setup ScandiPWA for my existing Magento 2 v.2.4.3 instance.

Could you please advise on the below error message. 

 

Appreciate your support in advance. 

 

root@sites:/var/www/domain1.com/public_html# composer update
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
Loading composer repositories with package information
In Laminas\DependencyPlugin\DependencyRewriterV2::onPrePoolCreate
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - magento/magento2-base[2.3.1, ..., 2.3.2-p2] require php ~7.1.3||~7.2.0 -> your php version (7.4.26) does not satisfy that requirement.
    - magento/magento2-base[2.3.3, ..., 2.3.6-p1] require php ~7.1.3||~7.2.0||~7.3.0 -> your php version (7.4.26) does not satisfy that requirement.
    - magento/magento2-base[2.3.7, ..., 2.4.2-p2] require laminas/laminas-code ~3.4.1 -> found laminas/laminas-code[3.4.1] but it conflicts with your root composer.json require (^3.5.1).
    - magento/magento2ce is present at version 2.4.3 and cannot be modified by Composer
    - scandipwa/compare-graphql 1.0.9 requires magento/magento2-base ^2.3.1 -> satisfiable by magento/magento2-base[2.3.1, ..., 2.4.3-p1].
    - magento/magento2-base[2.3.0, ..., 2.4.3-p1] cannot be installed as that would require removing magento/magento2ce[2.4.3]. They all replace trentrichardson/jquery-timepicker-addon and thus cannot coexist.
    - Root composer.json requires scandipwa/compare-graphql 1.0.9 -> satisfiable by scandipwa/compare-graphql[1.0.9].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
root@sites:/var/www/domain1.com/public_html# php bin/magento --version
Magento CLI 2.4.3

Backend Composer File

 

{
    "name": "magento/magento2ce",
    "description": "Magento 2 (Open Source)",
    "type": "project",
    "license": [
        "OSL-3.0",
        "AFL-3.0"
    ],
    "config": {
        "preferred-install": "dist",
        "sort-packages": true,
        "allow-plugins": {
            "laminas/laminas-dependency-plugin": true,
            "magento/magento-composer-installer": true,
            "dealerdirect/phpcodesniffer-composer-installer": true
        }
    },
    "version": "2.4.3",
    "require": {
        "php": "~7.3.0||~7.4.0",
Default ones removed for the post. "magento/framework": "*", "scandipwa/service-worker": "1.0.2", "scandipwa/installer": "4.0", "scandipwa/menu-organizer": "2.1.5", "scandipwa/persisted-query": "3.0.2", "scandipwa/slider-graphql": "2.1.0", "scandipwa/cms-graphql": "1.4.4", "scandipwa/catalog-graphql": "3.2.11", "scandipwa/route717": "2.0.2", "scandipwa/performance": "1.5.5", "scandipwa/customer-graph-ql": "3.1.9", "scandipwa/quote-graphql": "2.19.21", "scandipwa/wishlist-graphql": "2.0.15", "scandipwa/urlrewrite-graphql": "1.3.7", "scandipwa/store-graphql": "1.2.10", "scandipwa/customization": "1.5.9", "scandipwa/cache": "1.1.4", "scandipwa/locale": "2", "scandipwa/contact-graphql": "1.0.0", "scandipwa/klarna-graphql": "1.1.2", "scandipwa/compare-graphql": "1.0.9", "scandipwa/customer-downloadable-graphql": "1.0.4", "scandipwa/directory-graphql": "1.0.1", "scandipwa/product-alerts-graphql": "1.0.0", "scandipwa/sales-graphql": "1.0.4", "scandipwa/catalog-customer-graphql": "1.0.0" }, "suggest": { "ext-pcntl": "Need for run processes in parallel mode" }, "autoload": { "exclude-from-classmap": [ "**/dev/**", "**/update/**", "**/Test/**" ], "files": [ "app/etc/NonComposerComponentRegistration.php" ], "psr-0": { "": [ "app/code/", "generated/code/" ] }, "psr-4": { "Magento\\": "app/code/Magento/", "Magento\\Framework\\": "lib/internal/Magento/Framework/", "Magento\\Setup\\": "setup/src/Magento/Setup/" } }, "require-dev": { "allure-framework/allure-phpunit": "~1.4", "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", "friendsofphp/php-cs-fixer": "~2.18.1", "lusitanian/oauth": "~0.8.10", "magento/magento-coding-standard": "*", "magento/magento2-functional-testing-framework": "^3.0", "pdepend/pdepend": "~2.7.1", "phpcompatibility/php-compatibility": "^9.3", "phpmd/phpmd": "^2.8.0", "phpstan/phpstan": "^0.12.77", "phpunit/phpunit": "^9", "sebastian/phpcpd": "^6.0.3", "squizlabs/php_codesniffer": "~3.5.4", "symfony/finder": "^5.2" }, "conflict": { "gene/bluefoot": "*" }, "replace": { "magento/module-marketplace": "100.4.2", "magento/module-admin-analytics": "100.4.3", "magento/module-admin-notification": "100.4.2", "magento/module-advanced-pricing-import-export": "100.4.3", "magento/module-amqp": "100.4.1", "magento/module-amqp-store": "100.4.1", "magento/module-analytics": "100.4.3", "magento/module-asynchronous-operations": "100.4.3", "magento/module-authorization": "100.4.3", "magento/module-advanced-search": "100.4.1", "magento/module-backend": "102.0.3", "magento/module-backup": "100.4.3", "magento/module-bundle": "101.0.3", "magento/module-bundle-graph-ql": "100.4.3", "magento/module-bundle-import-export": "100.4.2", "magento/module-cache-invalidate": "100.4.1", "magento/module-captcha": "100.4.3", "magento/module-cardinal-commerce": "100.4.1", "magento/module-catalog": "104.0.3", "magento/module-catalog-customer-graph-ql": "100.4.3", "magento/module-catalog-analytics": "100.4.1", "magento/module-catalog-import-export": "101.1.3", "magento/module-catalog-inventory": "100.4.3", "magento/module-catalog-inventory-graph-ql": "100.4.0", "magento/module-catalog-rule": "101.2.3", "magento/module-catalog-rule-graph-ql": "100.4.1", "magento/module-catalog-rule-configurable": "100.4.2", "magento/module-catalog-search": "102.0.3", "magento/module-catalog-url-rewrite": "100.4.3", "magento/module-catalog-widget": "100.4.3", "magento/module-checkout": "100.4.3", "magento/module-checkout-agreements": "100.4.2", "magento/module-checkout-agreements-graph-ql": "100.4.0", "magento/module-cms": "104.0.3", "magento/module-cms-url-rewrite": "100.4.2", "magento/module-compare-list-graph-ql": "100.4.0", "magento/module-config": "101.2.3", "magento/module-configurable-import-export": "100.4.1", "magento/module-configurable-product": "100.4.3", "magento/module-configurable-product-sales": "100.4.1", "magento/module-contact": "100.4.3", "magento/module-cookie": "100.4.3", "magento/module-cron": "100.4.3", "magento/module-currency-symbol": "100.4.2", "magento/module-customer": "103.0.3", "magento/module-customer-analytics": "100.4.1", "magento/module-customer-downloadable-graph-ql": "100.4.0", "magento/module-customer-import-export": "100.4.3", "magento/module-deploy": "100.4.3", "magento/module-developer": "100.4.3", "magento/module-dhl": "100.4.2", "magento/module-directory": "100.4.3", "magento/module-directory-graph-ql": "100.4.1", "magento/module-downloadable": "100.4.3", "magento/module-downloadable-graph-ql": "100.4.3", "magento/module-downloadable-import-export": "100.4.2", "magento/module-eav": "102.1.3", "magento/module-elasticsearch": "101.0.3", "magento/module-elasticsearch-6": "100.4.3", "magento/module-elasticsearch-7": "100.4.3", "magento/module-email": "101.1.3", "magento/module-encryption-key": "100.4.2", "magento/module-fedex": "100.4.2", "magento/module-gift-message": "100.4.2", "magento/module-gift-message-graph-ql": "100.4.1", "magento/module-google-adwords": "100.4.1", "magento/module-google-analytics": "100.4.0", "magento/module-google-optimizer": "100.4.2", "magento/module-graph-ql": "100.4.3", "magento/module-graph-ql-cache": "100.4.0", "magento/module-catalog-graph-ql": "100.4.3", "magento/module-catalog-cms-graph-ql": "100.4.0", "magento/module-catalog-url-rewrite-graph-ql": "100.4.2", "magento/module-configurable-product-graph-ql": "100.4.3", "magento/module-customer-graph-ql": "100.4.3", "magento/module-eav-graph-ql": "100.4.1", "magento/module-swatches-graph-ql": "100.4.2", "magento/module-tax-graph-ql": "100.4.0", "magento/module-url-rewrite-graph-ql": "100.4.2", "magento/module-cms-url-rewrite-graph-ql": "100.4.1", "magento/module-weee-graph-ql": "100.4.1", "magento/module-cms-graph-ql": "100.4.1", "magento/module-grouped-import-export": "100.4.1", "magento/module-grouped-product": "100.4.3", "magento/module-grouped-catalog-inventory": "100.4.0", "magento/module-grouped-product-graph-ql": "100.4.3", "magento/module-import-export": "101.0.3", "magento/module-indexer": "100.4.3", "magento/module-instant-purchase": "100.4.2", "magento/module-integration": "100.4.3", "magento/module-layered-navigation": "100.4.3", "magento/module-login-as-customer": "100.4.3", "magento/module-login-as-customer-admin-ui": "100.4.3", "magento/module-login-as-customer-api": "100.4.2", "magento/module-login-as-customer-assistance": "100.4.2", "magento/module-login-as-customer-frontend-ui": "100.4.3", "magento/module-login-as-customer-graph-ql": "100.4.0", "magento/module-login-as-customer-log": "100.4.2", "magento/module-login-as-customer-quote": "100.4.2", "magento/module-login-as-customer-page-cache": "100.4.3", "magento/module-login-as-customer-sales": "100.4.3", "magento/module-media-content": "100.4.2", "magento/module-media-content-api": "100.4.2", "magento/module-media-content-catalog": "100.4.2", "magento/module-media-content-cms": "100.4.2", "magento/module-media-gallery": "100.4.2", "magento/module-media-gallery-api": "101.0.2", "magento/module-media-gallery-ui": "100.4.2", "magento/module-media-gallery-ui-api": "100.4.1", "magento/module-media-gallery-integration": "100.4.2", "magento/module-media-gallery-synchronization": "100.4.2", "magento/module-media-gallery-synchronization-api": "100.4.1", "magento/module-media-content-synchronization": "100.4.2", "magento/module-media-content-synchronization-api": "100.4.1", "magento/module-media-content-synchronization-catalog": "100.4.1", "magento/module-media-content-synchronization-cms": "100.4.1", "magento/module-media-gallery-synchronization-metadata": "100.4.0", "magento/module-media-gallery-metadata": "100.4.1", "magento/module-media-gallery-metadata-api": "100.4.0", "magento/module-media-gallery-catalog-ui": "100.4.1", "magento/module-media-gallery-cms-ui": "100.4.1", "magento/module-media-gallery-catalog-integration": "100.4.1", "magento/module-media-gallery-catalog": "100.4.1", "magento/module-media-gallery-renditions": "100.4.1", "magento/module-media-gallery-renditions-api": "100.4.0", "magento/module-media-storage": "100.4.2", "magento/module-message-queue": "100.4.3", "magento/module-msrp": "100.4.2", "magento/module-msrp-configurable-product": "100.4.1", "magento/module-msrp-grouped-product": "100.4.1", "magento/module-multishipping": "100.4.3", "magento/module-mysql-mq": "100.4.1", "magento/module-new-relic-reporting": "100.4.1", "magento/module-newsletter": "100.4.3", "magento/module-newsletter-graph-ql": "100.4.0", "magento/module-offline-payments": "100.4.2", "magento/module-offline-shipping": "100.4.2", "magento/module-page-cache": "100.4.3", "magento/module-payment": "100.4.3", "magento/module-paypal": "101.0.3", "magento/module-paypal-captcha": "100.4.1", "magento/module-paypal-graph-ql": "100.4.1", "magento/module-persistent": "100.4.3", "magento/module-product-alert": "100.4.2", "magento/module-product-video": "100.4.3", "magento/module-quote": "101.2.3", "magento/module-quote-analytics": "100.4.3", "magento/module-quote-bundle-options": "100.4.0", "magento/module-quote-configurable-options": "100.4.0", "magento/module-quote-downloadable-links": "100.4.0", "magento/module-quote-graph-ql": "100.4.3", "magento/module-related-product-graph-ql": "100.4.1", "magento/module-release-notification": "100.4.1", "magento/module-reports": "100.4.3", "magento/module-require-js": "100.4.0", "magento/module-review": "100.4.3", "magento/module-review-graph-ql": "100.4.0", "magento/module-review-analytics": "100.4.1", "magento/module-robots": "101.1.0", "magento/module-rss": "100.4.2", "magento/module-rule": "100.4.2", "magento/module-sales": "103.0.3", "magento/module-sales-analytics": "100.4.1", "magento/module-sales-graph-ql": "100.4.3", "magento/module-sales-inventory": "100.4.0", "magento/module-sales-rule": "101.2.3", "magento/module-sales-sequence": "100.4.1", "magento/module-sample-data": "100.4.1", "magento/module-search": "101.1.3", "magento/module-security": "100.4.3", "magento/module-send-friend": "100.4.2", "magento/module-send-friend-graph-ql": "100.4.0", "magento/module-shipping": "100.4.3", "magento/module-sitemap": "100.4.2", "magento/module-store": "101.1.3", "magento/module-store-graph-ql": "100.4.2", "magento/module-swagger": "100.4.2", "magento/module-swagger-webapi": "100.4.0", "magento/module-swagger-webapi-async": "100.4.0", "magento/module-swatches": "100.4.3", "magento/module-swatches-layered-navigation": "100.4.0", "magento/module-tax": "100.4.3", "magento/module-tax-import-export": "100.4.3", "magento/module-theme": "101.1.3", "magento/module-theme-graph-ql": "100.4.1", "magento/module-translation": "100.4.3", "magento/module-ui": "101.2.3", "magento/module-ups": "100.4.3", "magento/module-url-rewrite": "102.0.2", "magento/module-user": "101.2.3", "magento/module-usps": "100.4.2", "magento/module-variable": "100.4.1", "magento/module-vault": "101.2.3", "magento/module-vault-graph-ql": "100.4.0", "magento/module-version": "100.4.0", "magento/module-webapi": "100.4.2", "magento/module-webapi-async": "100.4.1", "magento/module-webapi-security": "100.4.1", "magento/module-weee": "100.4.3", "magento/module-widget": "101.2.3", "magento/module-wishlist": "101.2.3", "magento/module-wishlist-graph-ql": "100.4.3", "magento/module-wishlist-analytics": "100.4.2", "magento/theme-adminhtml-backend": "100.4.3", "magento/theme-frontend-blank": "100.4.3", "magento/theme-frontend-luma": "100.4.3", "magento/language-de_de": "100.4.0", "magento/language-en_us": "100.4.0", "magento/language-es_es": "100.4.0", "magento/language-fr_fr": "100.4.0", "magento/language-nl_nl": "100.4.0", "magento/language-pt_br": "100.4.0", "magento/language-zh_hans_cn": "100.4.0", "magento/framework": "103.0.3", "magento/framework-amqp": "100.4.1", "magento/framework-bulk": "101.0.0", "magento/framework-message-queue": "100.4.3", "trentrichardson/jquery-timepicker-addon": "1.4.3", "components/jquery": "1.11.0", "blueimp/jquery-file-upload": "5.6.14", "components/jqueryui": "1.10.4", "twbs/bootstrap": "3.1.0", "tinymce/tinymce": "3.4.7", "magento/module-csp": "100.4.2", "magento/module-aws-s3": "100.4.1", "magento/module-remote-storage": "100.4.1", "magento/module-jwt-framework-adapter": "100.4.0" }, "autoload-dev": { "psr-4": { "Magento\\PhpStan\\": "dev/tests/static/framework/Magento/PhpStan/", "Magento\\Sniffs\\": "dev/tests/static/framework/Magento/Sniffs/", "Magento\\TestFramework\\Inspection\\": "dev/tests/static/framework/Magento/TestFramework/Inspection/", "Magento\\TestFramework\\Utility\\": "dev/tests/static/framework/Magento/TestFramework/Utility/", "Magento\\Tools\\": "dev/tools/Magento/Tools/", "Magento\\Tools\\Sanity\\": "dev/build/publication/sanity/Magento/Tools/Sanity/" } }, "prefer-stable": true, "extra": { "component_paths": { "blueimp/jquery-file-upload": "lib/web/jquery/fileUploader", "components/jquery": [ "lib/web/jquery.js", "lib/web/jquery/jquery.min.js", "lib/web/jquery/jquery-migrate.js" ], "components/jqueryui": [ "lib/web/jquery/jquery-ui.js" ], "tinymce/tinymce": "lib/web/tiny_mce_4", "trentrichardson/jquery-timepicker-addon": "lib/web/jquery/jquery-ui-timepicker-addon.js", "twbs/bootstrap": [ "lib/web/jquery/jquery.tabs.js" ] } }, "repositories": { "theme": { "type": "path", "url": "/src/localmodules/my-app" }, "0": { "type": "composer", "url": "https://repo.magento.com" } } }

 

Thank You.