Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PoojaK97 opened this issue Sep 27, 2021 · 5 comments
Open

Comments

@PoojaK97
Copy link

It gives Error on latest React apps.

ERESOLVE unable to resolve dependency tree.

@alevhe
Copy link

alevhe commented Feb 24, 2022

@PoojaK97 have you found a solution?

@bburns
Copy link

bburns commented May 22, 2022

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

@jsandlerus
Copy link

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

@jsandlerus
Copy link

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

@bburns
Copy link

bburns commented May 23, 2022

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"
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants