Skip to content
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

Fix errors caused by d.mts files exporting only types #3618

Merged
merged 2 commits into from
Dec 19, 2023
Merged

Fix errors caused by d.mts files exporting only types #3618

merged 2 commits into from
Dec 19, 2023

Conversation

kossnocorp
Copy link
Member

@kossnocorp kossnocorp commented Dec 19, 2023

Closes #3616, #3615, #3588.

I still don't know what environmental settings cause this, but both smoke and "Are the types wrong?" are passing, and people reported that it helped, so I assume it should work.

I shipped it as date-fns@3.0.1-rc.1, so if you had this problem, I'd appreciate it if you could try it and tell me if it helped.

Additionally, I'd love to have a minimal reproduction example so this doesn't happen in the future. Please add it to https://github.com/date-fns/date-fns/tree/main/examples and send a PR mentioning me.

Sorry that the problem slipped. Making ESM work in all possible environments is a real nightmare.

@kossnocorp kossnocorp merged commit 8dc9ab3 into main Dec 19, 2023
12 checks passed
@kossnocorp kossnocorp deleted the mts branch December 19, 2023 23:43
@kossnocorp
Copy link
Member Author

kossnocorp commented Dec 19, 2023

I shipped with the fix with date-fns@3.0.1, please try it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3.0.0 - Errors when running typedoc on code that uses date-fns
1 participant