If you have not found an answer to your issue here, but happened to resolve it on your own / with help of community - please open a pull-request, or an issue with solution details.
Alternatively, write us in Slack.
Use “withRouter” to check for the URL and check if the new URL is different from the previous one.
All the important changes with each release are listed in GitHub under the GitHub Release important notes section.
You can also compare two tags using GitHub compare functionality.
General advice for easier upgrade process is to extend the code and keep the pure override count low. Extend original classes in overrides, do not copy them.
Theme doesn’t work if the index.php configured is not in the pub folder resulting in 404 error when requesting resources
ScandiPWA does not support installation in non /pub folder. Magento 2 also recommends installing it under /pub folder.
You can access Docker MySQL on your local setup with credentials from .application file and using 3307 port.
ERROR: Connection to Redis redis:6379 failed after 2 failures.Last Error: (0) phpnetworkgetaddresses: getaddrinfo failed: Name or service not known
This can happen after running the following command:
magento scandipwa:theme:bootstrap Scandiweb/pwa
To solve it you have to restart the app container. If this doesn’t help run the following command:
docker run -it -e COMPOSER_AUTH --entrypoint /bin/bash APP_CONTAINER_NAME
After rerun the command:
magento scandipwa:theme:bootstrap Scandiweb/pwa"
Fonts should be installed in the theme public folder and in index.development.html
Before that you must create a file with a different name as it is always taken from vendor:
- Rename the index file
- Change webpack import for it
- Add your new fonts there
Run the following command from Magento 2 root to resolve the issue:
rm -rf generated && magento c:f && chmod -R 777
Site can be opened with HTTP and HTTPs by default on local.
Ensure that newly created stores are added to your Nginx configuration.
Run the following Magento command from the container:
If it fails please remove the folder app/design/frontend/Scandiweb/pwa
Create a file with the same name in app/design and watch the following tutorial video to learn how to customize it.
Change the file name of your index.production.phtml and change the path to it in webpack.
Changes in constructor at this momemnt irrevertable. While we are working on making them extendable please override them completly.
You can run chrome with WEB security disabled.
Running the following command solves it:
After build just rerun the following command:
dcf up -d --remove-orphans
- Utilizes default Magento 2 cache control mechanism over X-Magento-Tags-Pattern header.
- Provides AddTagsToResponsePlugin to add entity headers to each GraphQl cacheable response.
- Utilizes custom Cache entity (singleton), to gather all entities, that were loaded during current request.
- Flush happens based on default cache_flush events for most entities.
- CMS pages has own event observers to track response/flush.