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

Crash when including 'react-native-dialogflow' #79

Open
MaxenceEpitech opened this issue Feb 1, 2020 · 4 comments
Open

Crash when including 'react-native-dialogflow' #79

MaxenceEpitech opened this issue Feb 1, 2020 · 4 comments

Comments

@MaxenceEpitech
Copy link

Hey,
I have an empty react app with expo and when I add this line:
import { Dialogflow_V2 } from 'react-native-dialogflow';
(same with import { Dialogflow } from 'react-native-dialogflow'; )
The app crash and I have this error message :
image
Any ideas ?

@joe-pellegrino
Copy link

I fixed the same issue by changing the package.json from 3.2.2 to 3.1.0. Deleting the module in node_modules, then running npm install.

@mitchhh22
Copy link

@joe-pellegrino your suggestion did not work.
I didn't try ejecting. Did you do something else?

@draturi
Copy link

draturi commented May 23, 2020

@mitchhh22 I just got it working. I enacted what @joe-pellegrino said. changed package.json at root to "react-native-dialogflow": "3.1.0" then rm -r react-native-dialogflow in node_modules directory, then finally from the root dir of the project ran npm install

This lead to npm installing 3.1.0 and now the app doesn't crash on the Invariant Violation.... error

@classicalguss
Copy link

I get a crash too. I'm using expo, and I'm trying to avoid ejecting. I also included the infoPlist in the app.json like this
"ios": { "bundleIdentifier": "com.yasmina.yasmina", "infoPlist": { "NSSpeechRecognitionUsageDescription": "Your usage description here", "NSMicrophoneUsageDescription": "Your usage description here" } },

Downgrading to 3.1.0 will stop that error, but will give you other errors if you used Dialogflow_V2

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

5 participants