-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
React typings not found in 3rd party package with peerDependency #1771
Comments
Hey what version of preact are you using? |
Preact 10.0.0-rc.0 |
Then you shouldn't use |
Also think you might have to install |
Sorry for confusion I made: I tried both current stable After some more digging into the problem I found that when running
command
Is there anybody that got components originally created for |
Alias can be done via Thanks everyone for help. |
Hello,
I am trying to get working library
react-sortable-hoc
withpreact
andbrowserify
in Typescript.I tried to alias the
react
package withaliasify
as described inpreact-compat
package's readme.Unfortunately
react-sortable-hoc
has peerDependency onreact
and even when aliasing for.ts
files works fine I've encountered an error in typescript definition of the package (in.d.ts
file) :I've been trying different approaches to solve this but none of them were successfull. So I would like to know if there is anything I can do to get that working? Also could
preact-compat
somehow provide react typings that would solve the problems with preact + peer dependency in 3rd party react packages?The text was updated successfully, but these errors were encountered: