We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi how can I implement with typescript I always get error JSX element type VideoRecorder does not have any construct or call signatures.
... "react-video-recorder": "^3.19.4", "styled-components": "^6.1.1", "typescript": "^4.9.5", ... "devDependencies": { "@types/react-video-recorder": "^3.19.3" }
` import React, {useEffect, useRef} from 'react';
import VideoRecorder from 'react-video-recorder'
class App extends React.Component { render() { return ( <VideoRecorder onRecordingComplete={(videoBlob: any) => { console.log('videoBlob', videoBlob) }} />) }
}
export default App;`
The text was updated successfully, but these errors were encountered:
Same problem here.
Versions: "react-video-recorder": "^3.19.4", "@types/react-video-recorder": "^3.19.3",
Sorry, something went wrong.
same
I am having the same issue with version 3.19.3 & 3.19.4.
Same issue 3.19.4
To fix this for now, add a file custom.d.ts and add the following content.
custom.d.ts
declare module "react-video-recorder" { const VideoRecorder: React.ComponentType<any>; export default VideoRecorder; }
No branches or pull requests
Hi how can I implement with typescript I always get error
JSX element type VideoRecorder does not have any construct or call signatures.
...
"react-video-recorder": "^3.19.4",
"styled-components": "^6.1.1",
"typescript": "^4.9.5",
...
"devDependencies": {
"@types/react-video-recorder": "^3.19.3"
}
`
import React, {useEffect, useRef} from 'react';
import VideoRecorder from 'react-video-recorder'
class App extends React.Component {
render() {
return ( <VideoRecorder
onRecordingComplete={(videoBlob: any) => {
console.log('videoBlob', videoBlob)
}}
/>)
}
}
export default App;`
The text was updated successfully, but these errors were encountered: