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

Error: 'Cannot convert undefined or null to object' when running the example #2

Open
YGYOOO opened this issue May 27, 2024 · 4 comments

Comments

@YGYOOO
Copy link

YGYOOO commented May 27, 2024

Steps to reproduce

  1. clone -> npm install -> cd example -> npm install -> if [ -d "./node_modules/reactgenie-lib" ]; then rm -r ./node_modules/reactgenie-lib; fi && npm install --install-links && npx expo start --web
  2. Click the round button:
    0
  3. Speek anything that would work, like "Add 2 bananas":
    1
  4. It looks fine:
    2
  5. The browser console reports an error: “Cannot convert undefined or null to object”
    3
  6. Speek anything that should work, like "Add one tomato":
    4
  7. It stopped working:
    5
  8. Same error as step 5:
    6

Environment

node: v22.2.0
macos: 11.5.1

@YGYOOO
Copy link
Author

YGYOOO commented May 27, 2024

May I ask some other questions?
Currently, in the example, I have only found some simple sentences like 'Add 2 bananas' work. However, 'complicated' sentences like 'Add one to each item', 'Increment all fruits counters', and 'Make the quantity of tomatoes the same as bananas' all return 'Sorry, I don't understand...'. Should I add some GenieFunctions or prompt examples to make some 'complicated' sentences work?

@YGYOOO
Copy link
Author

YGYOOO commented May 27, 2024

I mad a pull request to fix this: #3

@valkjsaaa
Copy link
Contributor

That's amazing. Thanks for fixing this!

@valkjsaaa
Copy link
Contributor

I'm super busy next few weeks working on my dissertation but I'll merge it as soon as possible

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