Resolving common issues after a Magento+ScandiPWA installation
In general, many Magento problems can be resolved by executing the following Magento commands:
# in general
# for all issues involving data of the products,
# reviews not being up to date (after change)
# when Magento 2 module does appear (or function properly)
magento module:enable <MODULE>
# missing classes, issues with Interceptors
rm -rf generated
There can be multiple reasons why the homepage shows a
404page. This is usually due to a Magento misconfiguration:
- 1.Go to Stores > Configuration > General > Web > Default Pages > CMS Home Page and check if it is set
- 2.Go to Content > Pages make sure the column
Store Viewis not empty for your Home Page CMS page. If it is empty, click on the page, select necessary stores and click save
If nothing has changed and you still see a 404 Not Found error, try running the following Magento commands:
If you installed ScandiPWA, but the frontend still displays the Luma theme, follow the steps below.
Magento_Themeis not be empty, and contains 2 folders. If this is not the case, compile the theme:
BUILD_MODE=magento yarn build
BUILD_MODE=magento npm run build
After the command's execution, the folders should appear. If there is a compliation issue, please read the logs to found out why.
Check the Content > Design > Themes and make sure your store has the correct ScandiPWA theme set.