preactjs / preact-compat

ATTENTION: The React compatibility layer for Preact has moved to the main preact repo.
http://npm.im/preact-compat
MIT License
950 stars 148 forks source link

Warnings incorrect peer dependency #548

Closed ndrean closed 2 years ago

ndrean commented 2 years ago

I always this warning:

warning " > preact-compat@3.19.0" has incorrect peer dependency "preact@<10".
warning "preact-compat > preact-context@1.1.4" has incorrect peer dependency "preact@^8.2.7".

I don't know if this is important or not.

marvinhagemeister commented 2 years ago

The package preact-compat is for Preact versions <=8.x, it is not needed for the 10.x release line. From the warning description it looks like you're using a newer version of Preact. To resolve these warnings uninstall preact-compat.

ndrean commented 2 years ago

Yes, thank you, yarn add @preact/compat preact and resolve.alias to preact/compat and this works with no change in the React code.