duskload / react-device-detect

Detect device, and render view according to detected device type.
MIT License
2.82k stars 154 forks source link

Support for React18 #212

Open sushmakale2016 opened 1 year ago

sushmakale2016 commented 1 year ago

The current library does not support react18, it would be nice to support react 18 as many other dependent applications are moving for upgrading from react 17 to react18

joshuaiz commented 1 year ago

Is anybody here? This.

LeroViten commented 1 year ago

Perfectly works for me with React18

thenick775 commented 10 months ago

Same here, works for me as well using: "react": "^18.2.0",

sweco-selumm commented 9 months ago

Does anyone else have a problem installing anything later than react-device-detect@1.17.0 ?

npm install react-device-detect@2.2.3

returns error

npm WARN ERESOLVE overriding peer dependency npm ERR! code ETARGET npm ERR! notarget No matching version found for react-device-detect@2.2.3. npm ERR! notarget In most cases you or one of your dependencies are requesting npm ERR! notarget a package version that doesn't exist.

Where

npm install react-device-detect@latest

installs version 1.17.0

Any clues what is happening?

Thanks much

Edit:

Using npm version 9.8.1, node version 18.18.0

sweco-selumm commented 9 months ago

Does anyone else have a problem installing anything later than react-device-detect@1.17.0 ?

npm install react-device-detect@2.2.3

returns error

npm WARN ERESOLVE overriding peer dependency npm ERR! code ETARGET npm ERR! notarget No matching version found for react-device-detect@2.2.3. npm ERR! notarget In most cases you or one of your dependencies are requesting npm ERR! notarget a package version that doesn't exist.

Where

npm install react-device-detect@latest

installs version 1.17.0

Any clues what is happening?

Thanks much

Edit:

Using npm version 9.8.1, node version 18.18.0

SOLVED. Apparently my .npmrc config to our local registry messed things up.