naoufal / react-native-speech

A text-to-speech library for React Native.
https://www.npmjs.com/package/react-native-speech
304 stars 52 forks source link

Unable to resolve module NativeModules #8

Closed YonasBerhe closed 8 years ago

YonasBerhe commented 8 years ago

Hello,

I'm simply trying to require this library as a module within my application, and it just doesn't work. I have successfully added your other library react-native-activity-view to my application with no errors at all, I also followed the facebook docs like you suggested.

Unable to resolve module NativeModules from /path/tomy/home/dir/node_modules/react-native-speech/SpeechSynthesizer.ios.js: Invalid 
Unable to resolve module NativeModules

Commenting out your require on NativeModules prompted that _invariant _ could not be found as a module.

Unable to resolve module invariant

I'm actively researching these issues, any help would be greatly appreciated.

YonasBerhe commented 8 years ago

?

joshbuchea commented 8 years ago

Same issue here.

npm install --save invariant in your project directory should resolve the invariant message.

YonasBerhe commented 8 years ago

Ya still getting the same error.

YonasBerhe commented 8 years ago

9

nicholasalanbrown commented 8 years ago

+1 - this library won't work on React Native 0.14+ without this fix.

joshbuchea commented 8 years ago

+1

xdamman commented 8 years ago

+1