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
After I run react-native run-android, the entire react-native command will break on this line.
// FILE: node_modules/@react-native-community/cli/build/commands/server/middleware/getDevToolsMiddleware.js
var __opn = require('opn');
It seems that this package is not even used, so I fixed this error, by just removing the entire line.
The interesting part is, that I haven't seen this error, when running ios app. It broke completely the first time I run the run-android.
Doesn't seem to be related to this: #468, since I don't have monorepo. android folder is on same level as node_modules.
Log output
When directly running "node ./node_modules/react-native/cli.js config"
internal/modules/cjs/loader.js:583
throw err;
^
Error: Cannot find module 'opn'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (/Users/lukaskurucz/Git/app-name/node_modules/@react-native-community/cli/build/commands/server/middleware/getDevToolsMiddleware.js:41:13)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
Gradle error for reference
FAILURE: Build failed with an exception.
* Where:
Script '/Users/lukaskurucz/Git/app-name/node_modules/@react-native-community/cli-platform-android/native_modules.gradle' line: 190
* What went wrong:
A problem occurred evaluating settings 'app-name'.
> Text must not be null or empty
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 0s
The text was updated successfully, but these errors were encountered:
Environment
Description
After I run
react-native run-android
, the entire react-native command will break on this line.It seems that this package is not even used, so I fixed this error, by just removing the entire line.
The interesting part is, that I haven't seen this error, when running ios app. It broke completely the first time I run the
run-android
.Doesn't seem to be related to this: #468, since I don't have monorepo.
android
folder is on same level asnode_modules
.Log output
The text was updated successfully, but these errors were encountered: