react-voice-components
react-voice-components copied to clipboard
TransformError: [...]: Couldn't find preset "es2015" relative to directory
Maybe you have them globally installed somewhere.
I just did npm install --save react-voice-components
and import { VoiceRecognition } from 'react-voice-components';
in my component.
To fix :
npm i -S babel-preset-es2015
npm install -S babel-preset-stage-2
They should be listed as dependencies :)
I forked this module and fixed the ES5 incompatability by rewriting the functions.
I have made a pull request for the fixes, but in the meantime, you can fork my repo from here: https://github.com/bchang1213/react-voice-components