react-voice-components icon indicating copy to clipboard operation
react-voice-components copied to clipboard

TransformError: [...]: Couldn't find preset "es2015" relative to directory

Open fabien-h opened this issue 8 years ago • 1 comments

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 :)

fabien-h avatar Jan 01 '17 22:01 fabien-h

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

sazokashi avatar Mar 07 '18 07:03 sazokashi