react-native-dialogflow icon indicating copy to clipboard operation
react-native-dialogflow copied to clipboard

Crash when including 'react-native-dialogflow'

Open MaxenceEpitech opened this issue 5 years ago • 4 comments

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 ?

MaxenceEpitech avatar Feb 01 '20 09:02 MaxenceEpitech

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.

joe-pellegrino avatar Mar 03 '20 02:03 joe-pellegrino

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

mitchhh22 avatar May 14 '20 01:05 mitchhh22

@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

draturi avatar May 23 '20 06:05 draturi

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

classicalguss avatar Jun 27 '20 23:06 classicalguss