Skip to content

ERR_INVALID_ARG_TYPE #64

Open
Open
@dannyschot

Description

@dannyschot

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

Activity

winkelmantanner

winkelmantanner commented on Feb 4, 2020

@winkelmantanner

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

      Participants

      @winkelmantanner@dannyschot

      Issue actions

        ERR_INVALID_ARG_TYPE · Issue #64 · peggyrayzis/react-native-create-bridge