react-speech-kit icon indicating copy to clipboard operation
react-speech-kit copied to clipboard

Peer dependency should be upgraded to recent version of React - 17.0.2

Open PoojaK97 opened this issue 3 years ago • 5 comments

It gives Error on latest React apps.

ERESOLVE unable to resolve dependency tree.

PoojaK97 avatar Sep 27 '21 11:09 PoojaK97

@PoojaK97 have you found a solution?

alevhe avatar Feb 24 '22 10:02 alevhe

It seems to works okay with React 18.1 - npm install --force react-speech-kit

bburns avatar May 22 '22 09:05 bburns

I have updated to React 18.1 and it still not working after doing --force install.

jsandlerus avatar May 23 '22 00:05 jsandlerus

It seems to works okay with React 18.1 - npm install --force react-speech-kit

Can you please share the setup you have working? I followed the exact same code from this example page and I cannot make it work. -> https://github.com/MikeyParton/react-speech-kit/blob/master/examples/src/useSpeechSynthesis.jsx

jsandlerus avatar May 23 '22 00:05 jsandlerus

Sure - it worked with a bare minimum NextJs setup -

npx create-next-app tourguide
cd tourguide
npm install
npm install --force react-speech-kit

then

import { useSpeechSynthesis } from 'react-speech-kit'
export default function Home() {
  const { speak } = useSpeechSynthesis()
  ...
  speak({ text })

package.json -

{
  "name": "tourguide",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  },
  "dependencies": {
    "next": "12.1.6",
    "react": "18.1.0",
    "react-dom": "18.1.0",
    "react-speech-kit": "^3.0.1"
  },
  "devDependencies": {
    "eslint": "8.16.0",
    "eslint-config-next": "12.1.6"
  }
}

bburns avatar May 23 '22 04:05 bburns