MikeyParton / react-speech-kit

React hooks for Speech Recognition and Speech Synthesis
https://mikeyparton.github.io/react-speech-kit
237 stars 63 forks source link

Not compatible with React 18 #91

Open marcellintacite opened 1 year ago

marcellintacite commented 1 year ago

I am installing this package under React 18 but i am getting this error : npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: cours-react@0.0.0 npm ERR! Found: react@18.2.0 npm ERR! node_modules/react npm ERR! react@"^18.2.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^16.8.0" from react-speech-kit@3.0.1 npm ERR! node_modules/react-speech-kit npm ERR! react-speech-kit@"*" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! See C:\Users\Administrator\AppData\Local\npm-cache\eresolve-report.txt for a full report.

shihui-huang commented 1 year ago

I got the same error

TheDoomfire commented 1 year ago

Did you ever fix it?

pollen8 commented 12 months ago

you will need to install with legacy peer deps

npm i -S react-speech-kit --legacy-peer-deps  
Zapallit0 commented 11 months ago

npm i -S react-speech-kit --legacy-peer-deps i tried this but keep showing the error :c

suhrob008 commented 8 months ago
          1

Screenshot from 2024-01-19 23-26-59

2 Screenshot from 2024-01-19 23-25-42

3 Screenshot from 2024-01-19 23-28-33

Why can't these be installed? @MikeyParton

Originally posted by @suhrob008 in https://github.com/MikeyParton/react-speech-kit/issues/33#issuecomment-1900906387

suhrob008 commented 8 months ago

npm WARN using --force Recommended protections disabled. npm WARN ERESOLVE overriding peer dependency npm WARN While resolving: react-speech-kit@3.0.1 npm WARN Found: react@18.2.0 npm WARN node_modules/react npm WARN peer react@">=18" from @chakra-ui/accordion@2.3.1 npm WARN node_modules/@chakra-ui/accordion npm WARN @chakra-ui/accordion@"2.3.1" from @chakra-ui/react@2.8.2 npm WARN node_modules/@chakra-ui/react npm WARN 92 more (@chakra-ui/alert, @chakra-ui/avatar, ...) npm WARN npm WARN Could not resolve dependency: npm WARN peer react@"^16.8.0" from react-speech-kit@3.0.1 npm WARN node_modules/react-speech-kit npm WARN react-speech-kit@"^3.0.1" from the root project npm WARN npm WARN Conflicting peer dependency: react@16.14.0 npm WARN node_modules/react npm WARN peer react@"^16.8.0" from react-speech-kit@3.0.1 npm WARN node_modules/react-speech-kit npm WARN react-speech-kit@"^3.0.1" from the root project npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/@types%2freact-speech-kit - Not found npm ERR! 404 npm ERR! 404 '@types/react-speech-kit@*' is not in this registry. npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in: /home/suhrob/.npm/_logs/2024-01-19T19_38_17_636Z-debug-0.log

Screenshot from 2024-01-20 00-42-13

Help Me Please!

ryanjames1729 commented 7 months ago

You have to change the config file in your root directory to react^16.8 to avoid the errors or use --force.