ethereum-boilerplate / ethereum-react-native-boilerplate

The ultimate full-stack Ethereum React Native Dapp Boilerplate which gives you maximum flexibility and speed. Feel free to fork and contribute. Although this repo is called "Ethereum Boilerplate" it works with any EVM system! Happy BUIDL!👷‍♂️
MIT License
543 stars 285 forks source link

Unable to load scripts #41

Closed CocoJr closed 2 years ago

CocoJr commented 2 years ago

Hi !

Trying the boilerplate on android emulator and got this error:

Screenshot_1647344883

This is my terminal log:

$ npx react-native run-android --verbose
warn Package eslint-plugin-functional has been ignored because it contains invalid configuration. Reason: Package subpath './package.json' is not defined by "exports" in /home/coco/Projects/ethereum-react-native-boilerplate/node_modules/eslint-plugin-functional/package.json
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1338 file(s) to forward-jetify. Using 16 workers...
info Starting JS server...
info Installing the app...
debug Running command "cd android && ./gradlew app:installDebug -PreactNativeDevServerPort=8081"

> Configure project :react-native-os
WARNING:: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed in version 7.0 of the Android Gradle plugin.
For more information, see http://d.android.com/r/tools/update-dependency-configurations.html.

> Task :app:installDebug
Installing APK 'app-debug.apk' on 'Pixel_4_API_31(AVD) - 12' for app:debug
Installed on 1 device.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.9/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 6s
221 actionable tasks: 4 executed, 217 up-to-date
info Connecting to the development server...
debug Running command "/home/coco/Android/Sdk/platform-tools/adb -s emulator-5554 reverse tcp:8081 tcp:8081"
info Starting the app on "emulator-5554"...
debug Running command "/home/coco/Android/Sdk/platform-tools/adb -s emulator-5554 shell am start -n com.ethereumrnboilerplate/com.ethereumrnboilerplate.MainActivity"
Starting: Intent { cmp=com.ethereumrnboilerplate/.MainActivity }
CocoJr commented 2 years ago

Ok, the problem was I need to start the metro bundler with npx react-native start...