You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The build script in the project currently uses the rm -rf command to clean the lib directory. This command works on Unix-based systems but fails on Windows, as rm is not recognized as an internal or external command.
This leads to the following error when running the build script on Windows:
'rm' is not recognized as an internal or external command,
operable program or batch file.
Steps to Reproduce
Clone the repository on a Windows machine.
Run yarn install.
Navigate to package directory (cd package)
Run yarn install.
You will end up with:
yarn install v1.22.22
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > @gorhom/[email protected]" has incorrect peer dependency "react-native-reanimated@>=3.16.0".
warning " > [email protected]" has unmet peer dependency "webpack@>=2".
warning Workspaces can only be enabled in private projects.
[4/4] Building fresh packages...
$ yarn run build
yarn run v1.22.22
$ rm -rf lib && yarn run --silent build-translations && bob build && yarn run --silent copy-translations
'rm' is not recognized as an internal or external command,
operable program or batch file.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Proposed Solution
I'd suggest cross-platform alternative like rimraf which is compatible with both Unix-based systems and Windows. For example:
"scripts": {
"build": "rimraf lib && yarn run build-translations && bob build && yarn run copy-translations"
}
The text was updated successfully, but these errors were encountered:
hi @OrkhanGG, we mainly use MacOS/Unix environments to develop our products and haven't noticed this issue.
Can you submit a PR with the proposed fix? We'll be happy to merge it.
Issue
The build script in the project currently uses the rm -rf command to clean the lib directory. This command works on Unix-based systems but fails on Windows, as rm is not recognized as an internal or external command.
This leads to the following error when running the build script on Windows:
'rm' is not recognized as an internal or external command, operable program or batch file.
Steps to Reproduce
package
directory (cd package
)yarn install
.You will end up with:
Proposed Solution
I'd suggest cross-platform alternative like
rimraf
which is compatible with both Unix-based systems and Windows. For example:The text was updated successfully, but these errors were encountered: