-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
TypeScript declarations for react-player/lazy broken in v2.8.1 #1146
Comments
Hello 🖖 Got this error on my side :
Import :
Usage :
|
Hi @toinelin, yes I believe that error is caused by the react-player/lazy TypeScript declarations being broken. |
@JuanM04 Any ideas? There does seem to be a circular requirement between I can't see any |
It's because Update: I've sent a PR. #1153 |
That's basically it. |
* fix: ensure lazy typedefs mirror defaults Fixes #1146 * build: squash copy into a single command Co-authored-by: Pete Cook <pete@cookpete.com> Co-authored-by: Pete Cook <pete@cookpete.com>
Current Behavior
Previously successfully using react-player v2.7.2 in TypeScript project importing react-player/lazy.
Upgrading to react-player v2.8.1 results in TypeScript errors as the TypeScript declarations for react-player/lazy have been broken.
Expected Behavior
Working TypeScript declarations for react-player/lazy.
Steps to Reproduce
Just try importing "react-player/lazy" in TypeScript project using react-player v2.8.1.
Environment
Other Information
Related to old closed issue #918.
The react-player/lazy/index.d.ts file seems to be a copy of the react-player/index.d.ts file but this simple approach no longer works due to broken relative path imports.
The text was updated successfully, but these errors were encountered: