-
Notifications
You must be signed in to change notification settings - Fork 514
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
error TS2309: An export assignment cannot be used in a module with other exported elements. #978
Comments
Using node -v "@types/react": "^18.2.42", |
@gilbarbara Can you please help here ? |
Hey @vsbharath
Also, which versions do you have for react and react-joyride. |
here are the version that I'm using Even upgrading to latest 2.7.0 running tsc is failing for react-joyride |
Is see in react-joyride/dist/index.d.ts two exports with the same file and Joyride as decalred as default and not sure why it is generated another export = JoyRide at the end of the file. After removing this line from node_modules it worked. Can you please help how this file is generated? |
I have the same issue when using versions above 2.5.5. |
After some investigation i found out that the issue comes from using fix-tsup-cjs in the build process which creates the duplicate export. |
Does setting "skipLibCheck" to true in your tsconfig fixes the problem? |
No, skipLibCheck is not fixing the problem as the library it is being
called from other files that are included under tsc config.
If I just remove the duplicate line generated from the generated file. it
works.
…On Mon, Dec 18, 2023 at 10:25 AM Gil Barbara ***@***.***> wrote:
Does setting "skipLibCheck" to true in your tsconfig fixes the problem?
—
Reply to this email directly, view it on GitHub
<#978 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIG5O5WKCMRLEIERVR4HIZDYKCDDFAVCNFSM6AAAAABANMNDVOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRRGI3DMMRWGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Weird. |
@vsbharath @matthiasschwarz Thanks |
Issue is resolved for me with version 2.7.2. |
🐛 Bug Report
After Upgrading to latest react and react-joyride. Seeing issues while tunning yarn tsc
node_modules/react-joyride/dist/index.d.ts:295:1 - error TS2309: An export assignment cannot be used in a module with other exported elements.
295 export = Joyride
To Reproduce
Upgrade React to latest
Expected behavior
The text was updated successfully, but these errors were encountered: