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

TypeError when running new-module #57

Open
1 of 2 tasks
paul019 opened this issue Oct 12, 2018 · 5 comments
Open
1 of 2 tasks

TypeError when running new-module #57

paul019 opened this issue Oct 12, 2018 · 5 comments

Comments

@paul019
Copy link

paul019 commented Oct 12, 2018

Dev setup:

  • react-native-create-bridge version: 2.0.1
  • react-native version: 27.0.0

I am using create-bridge in a:

  • standalone library
  • existing React Native project

What you did:

Pauls-MBP:pq-app-v2 Paul$ react-native new-module
Scanning folders for symlinks in /Users/Paul/Desktop/ExpoProjekte/pq-app-v2/node_modules (27ms)
? What is your bridge module called? TurnByTurn
? What type of bridge would you like to create? (Press <space> to select, <a> to
 toggle all, <i> to inverse selection)Native Module, Native UI Component
? What OS & languages would you like to support? Android/Java, iOS/Swift
? What directory should we deliver your JS files to? .
✖ Oh no! 💩  Something went wrong with creating your bridge module.
Please report any errors here: https://github.com/peggyrayzis/react-native-create-bridge/issues

Error: TypeError: Path must be a string. Received undefined

What happened:

See the error above.
(Error: TypeError: Path must be a string. Received undefined)

@anwzhang
Copy link

Hi,

I did the same steps and also run into this TypeError, can anyone help?

@linfan68
Copy link

Same here...

@morenoh149
Copy link

Have you tried a path other than ‘.’?

@anwzhang
Copy link

@morenoh149 Yes, I've tried other paths, still the same error.

@morenoh149
Copy link

morenoh149 commented Apr 12, 2019

I just ran this

$ react-native new-module
? What is your bridge module called? ExampleBridge
? What type of bridge would you like to create? (Press <space> to select, <a> to toggle all, <i> to inverse selection)Native Module, Native UI Component
? What OS & languages would you like to support? (Press <space> to select, <a> to toggle all, <i> to inverse selection)Android/Java, iOS/Objective-C
? What directory should we deliver your JS files to? .
✔ Your bridge module was successfully created! 🎉

I did not specify a project name (default). I chose to make a bridge for both types, Native module and native UI component. I chose android/java and ios/objective-c. I chose the current directory .. What options did you specify @anwzhang ?

I built a new react native app and ran the instructions in the readme https://github.com/morenoh149/reactNativeCreateBridgeTest

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

4 participants