Hello, i’ve been making deployments with older versions of Sage but with Sage 10 I have some errors. When I deploy to production via FTP following the instructions from Sage docs (yarn build && composer install --no-dev excluding node_modules), apparently some packages installed via composer on local do not work on production.
I tried to make a fresh composer install in production too without success. PHP versions are identical, and modules / server requirements are fine. I can’t understand why some packages like generoi/sage-woocommerce or log1x/sage-svg added in development don’t work in production.
Yes, I confirm all packages are uploaded in vendor folder on remote. Oddly, only the packages added with composer require aftewards are not working in production.
Thanks @cim The thread has pointed to a partial solution. I’m not deploying to shared host, but to an AWS instance running Ubuntu, so I decided to delete composer.lock and running composer install --no-dev from there. After that I ran wp acorn package:discover and the package generoi/sage-woocommerce was working as in locahost. Unfortunately the trick didn’t work for log1x/sage-svg but I changed my code to avoid errors with the directive @svg provided by the package.
To be honest, I don’t fully understand why the deployment did not work