Closed DawitAskabe closed 5 months ago
Hey @DawitAskabe
You must be running old dependencies in your app or a misconfigured tsconfig. Check the demo to see how it's working with Typescript without problems.
here are changes i had to make to get it to build in my project:
react-joyride > 2.5.5 starts using typescript 5.2.2 ; which breaks other react libs. react-joyride 2.5.5 uses typescript 4.9.5 - upgraded my project accordingly.
dependencies
devdependencies
"react-joyride": "2.5.5",
It works for me.
🐛 Bug Report
import error in typescript project
To Reproduce
import joyride as follows
import Joyride from 'react-joyride';
Expected behavior
shouldn't get errors
Link to repl or repo (highly encouraged)
Run
npx envinfo --system --binaries --npmPackages react-joyride
Paste the results here: