Cannot generate assets, error Unrecognized command "generate-bootsplash".
See original GitHub issueBug report
Summary
Get an error trying to generate assets: Run this in terminal:
npx react-native generate-bootsplash ./src/assets/images/app/logo.png --background-color=000 --logo-width=200 --assets-path=./src/assets/images/bootsplash
warn Package react-native-bootsplash has been ignored because it contains invalid configuration. Reason: Unexpected token {
error Unrecognized command "generate-bootsplash".
info Run "react-native --help" to see a list of all available commands.
Environment info
react-native info
output:
System:
OS: macOS 10.15.6
CPU: (4) x64 Intel(R) Core(TM) i3-8100B CPU @ 3.60GHz
Memory: 1.18 GB / 16.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 8.17.0 - ~/.nvm/versions/node/v8.17.0/bin/node
Yarn: Not Found
npm: 6.14.8 - ~/.nvm/versions/node/v8.17.0/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.10.0 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.2, DriverKit 20.0, macOS 11.0, tvOS 14.2, watchOS 7.1
Android SDK: Not Found
IDEs:
Android Studio: 4.1 AI-201.8743.12.41.6953283
Xcode: 12.2/12B45b - /usr/bin/xcodebuild
Languages:
Java: 11.0.8 - /usr/bin/javac
Python: 2.7.16 - /usr/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.13.1 => 16.13.1
react-native: 0.63.4 => 0.63.4
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
Library version: 3.1.2
Issue Analytics
- State:
- Created 3 years ago
- Comments:21 (9 by maintainers)
Top Results From Across the Web
How to get started with react-native-bootsplash - Stack Overflow
1 Answer 1 ; Step 1: Add the package to react-native project ; Step 2: Generate assets for bootscreen. ; Step 3: Update...
Read more >react-native-bootsplash - Bountysource
I have tried on Samsung, Huawei, Lenovo and Xiaomi but could not generate the bug. Here is the logs of the crash: Fatal...
Read more >Vscode ... Unable to generate assets to build and debug ...
I found in Debug menu there is no configuration , but I already have installed C# extensions. then I tried the solution View...
Read more >Generate image assets from layers - Adobe Support
Use Photoshop Generator to extract layers or layer groups in Adobe Photoshop as image assets.
Read more >create-asset — AWS CLI 1.27.20 Command Reference
A list of detailed errors. (structure). Contains detailed error information. code -> (string). The error code. message - ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Please run this in terminal:
npx generate-bootsplash --help
oryarn generate-bootsplash --help
@zoontek Somehow I manage to fix the issue, i removed the lock files and node_packages and reinstalling again. Now the command is reconegnized. Thank for blazingly fast response to my issue.