Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERR_INVALID_ARG_TYPE #64

Open
1 task done
dannyschot opened this issue Feb 3, 2020 · 1 comment
Open
1 task done

ERR_INVALID_ARG_TYPE #64

dannyschot opened this issue Feb 3, 2020 · 1 comment

Comments

@dannyschot
Copy link

dannyschot commented Feb 3, 2020

Its a kind of duplicate i know but it have not been solved yet or at least not that i could solve it.

  • react-native-create-bridge version: 2.0.1

  • react-native version:4.1.13

  • existing React Native project

What you did:

after using the command react-native new-module and fill out every step. I got an error "TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined"

What happened:

Screenshot 2020-02-03 at 14 26 42

@dannyschot dannyschot reopened this Feb 3, 2020
@winkelmantanner
Copy link

winkelmantanner commented Feb 4, 2020

I'm having the exact same error.
react-native-cli: 2.0.1
react-native: 0.59.10
react-native-create-bridge: 2.0.1
The error does not occur if I turn off Android/Java.
The exception was thrown on index.js:91, which is part of the statement var appPath = path.join(process.cwd(), "android", "app", "src", "main", "java", "com", pkg.name);.
pkg is the contents of package.json.
Adding a name attribute to package.json fixed this error for me, but now I'm getting other errors.
For the error that started this issue, try adding a line with "name":"yourAppsName", in package.json (substitute the name of your app for yourAppsName, and make sure there is only one pair of curly braces around this line).
Now I'm getting Error: Invalid argument not valid semver ('^0.59.9' received) thrown file-operations.js:22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants