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

TypeScript error #43

Open
hendriklammers opened this issue Jan 23, 2025 · 1 comment
Open

TypeScript error #43

hendriklammers opened this issue Jan 23, 2025 · 1 comment

Comments

@hendriklammers
Copy link

hendriklammers commented Jan 23, 2025

While trying to follow the examples and import tz like this:

import { tz } from "@date-fns/tz";

I get the following TypeScript error: typescript: Module '"@date-fns/tz"' has no exported member 'tz'.

Are there TypeScript types available and do I have to install them separately? If yes, from where?

@esclapes
Copy link

This seems to be an issue with TS v4 and not happen on TS v5. At least in my case.

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

No branches or pull requests

2 participants