This article provides a solution for the issue where your Magento 2.4.0 installation fails with the error message "The default website isn't defined. Set the website and try again." displayed in the console.
Affected products and versions
- Magento Commerce Cloud 2.4.0.
- Magento Commerce 2.4.0.
A third-party extension with dependencies on APIs for the Store module in CLI commands is configured as required in
During the installation of Magento 2.4.0 this causes the installation to fail with an error message "The default website isn't defined. Set the website and try again." displayed in the console.
The issue appears for the third-party extensions which have dependencies on stores in their CLI commands. One is Amazon Sales Channels.
Before the installation of Magento 2.4.0 merchants have to:
- Remove these third-party extensions from
- Install Magento without extensions.
- Add the extensions after the installation.
The issue will be fixed in the scope of 2.4.1 release.