-
-
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
No TypeScript declarations for react-player/lazy #918
Comments
Workaround: |
It's been a while since I've used Typescript. Would it work if I just copied the |
I just tried that locally and it works fine. I'm not sure if there's some other more correct way. |
Current Behavior
Trying to move to lazy loading as per instructions, importing "react-player/lazy". However this causes error as no TypeScript declaration file can be found.
Expected Behavior
Working TypeScript declaration file as per import of just "react-player".
Steps to Reproduce
Just try importing "react-player/lazy" in TypeScript project.
Environment
Other Information
n/a
The text was updated successfully, but these errors were encountered: