Pre-requisites
Here is a list of the requirements needed to begin using Berry React.
No need to set up or configure tools such as Webpack or Babel - they are already configured, allowing you to focus on the code.
Pre-requisites
Node JS - Version 20.x.x recommended
When copying folders, include hidden files like
.env
. This file contains important theme settings. Do not delete the.env
file. Update its values according to your organization’s needs, but do not change the keys.The theme includes two lock files:
yarn.lock
(for Yarn) andpackage-lock.json
(for npm). Each of these files corresponds to a different package manager. To ensure consistency and avoid potential conflicts:Choose a Package Manager: Decide whether you will use Yarn or npm for managing dependencies in your project.
If using Yarn: Retain
yarn.lock
and deletepackage-lock.json
.If using npm: Retain
package-lock.json
and deleteyarn.lock
.
Do Not Modify Lock Files Manually: Avoid editing the contents of
yarn.lock
orpackage-lock.json
directly. Manually changing these files can lead to dependency issues and inconsistencies. Always use the appropriate package manager commands (yarn
ornpm
) to update or regenerate these files.
You can check your current version using following commands:
This documentation primarily uses Yarn. You can replace Yarn commands with npm if needed.
Troubleshooting
If you face the following error in your terminal, it means Yarn is not installed in your system.
Please install it using this link as it does not come with Node automatically.
Last updated