-
Notifications
You must be signed in to change notification settings - Fork 257
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
Typescript definition seams to have a wrong export #218
Comments
Ah, sorry about that! Sounds like a quick fix, but I've never used Typescript, so I'd be unable to verify that the fix works... I suppose that if there are unintended consequences or something, they can always be patched separately; as it's just a type definition and not runtime code I'm not super concerned about it. If you or anyone can create a quick PR I'll be sure to get it landed/shipped; I'm currently juggling too many things and don't wanna commit to doing this myself, only to forget about it. |
actually... lemme just do it now, since it really is a 2-second thing |
@joshwcomeau Hi, No problem at all. I was able to solve the issue in a matter of minutes :) I would not consider myself as a Typescript expert but at least i can try to take a look at the fix :-) |
Believe this was fixed in |
Hi guys, Not sure this is completely fixed yet - It compiles and ultimately works in the browser, but typescript shows an error: Any other flavour of import other than I'm using react 16.2.0, react-flip-move 3.0.1 and typescript 2.7 |
Ah, sorry to hear that! Reopening the issue. Afraid I've never used Typescript, so I'm not the best person to try and troubleshoot :/ As a possible workaround, is it possible to ignore the typescript typings for specific third-party modules, so that it doesn't show up as an error in your project? With Flow, for example, it just assumes unrecognized imports are |
Same error here. |
Having the same issues with 3.0.0 and 3.0.1 (sticking to 2.x for now) |
I have the same issue with 3.0.1 - with |
Still the same, but while starting the server. "JSX element type 'FlipMove' does not have any construct or call signatures." |
I had the same issue as @spcfran and @arichter83 (JSX element type...) but I have installed this package in the parent directory by mistake. It works after proper installation. |
Hi,
Typescript errors got me importing the component like
import * as FlipMove from 'react-flip-move';
:-)However, when compiled this seams to cause react to crash because the render methods can't handle object's but expects a function or class instead. This issue is gone when i import the component like
import FlipMove from 'react-flip-move'
but that won't pass the typeschecking :-)I was able to fix this by using
export defualt FlipMove
instead ofexport = FlipMove
in the definition :-)The text was updated successfully, but these errors were encountered: