gilbarbara / react-joyride

Create guided tours in your apps
https://react-joyride.com/
MIT License
6.62k stars 519 forks source link

type error: '?' expected. #970

Closed aseph8083 closed 7 months ago

aseph8083 commented 7 months ago

I use the nextjs project, when the build production occurs error

/node_modules/react-joyride/node_modules/type-fest/source/camel-case.d.ts:25:32 Type error: '?' expected.

image

npm version 10.2.3 node version v18.17.1 next ^12.0.10

gilbarbara commented 7 months ago

Hey @aseph8083

Issues without a codesandbox are likely to stall. But why are you checking lib types anyway? Do you have skipLibCheck in your tsconfig? Could you try adding it to see if the error goes away?

pappitito commented 6 months ago

this did not work @gilbarbara

pappitito commented 6 months ago

@gilbarbara any other suggestions to fix this issue?

gilbarbara commented 6 months ago

Probably your typescript version. What version are you using now? Try to upgrade to 5.x or at least 4.9.2