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

Types not found #3

Open
rashad opened this issue Nov 13, 2021 · 2 comments
Open

Types not found #3

rashad opened this issue Nov 13, 2021 · 2 comments

Comments

@rashad
Copy link

rashad commented Nov 13, 2021

Hey ! Love the package thanks for the work ! I'm using it in a nextjs app with Typescript and I get this error during import
CleanShot 2021-11-13 at 16 49 01@2x

I'm using time-delta": "^1.0.0
I've tried running the types command npm i -D @types/time-delta but I get a 404.

any chance someone can give me a hand?
Cheers from 🇫🇷

@benchdollar
Copy link

I am running into the same issue for the de locale.

@benchdollar
Copy link

benchdollar commented Jan 4, 2022

Adding a file types.d.ts with

declare module "time-delta/locales/de";

as content helped, after I started npm start again. Sure that it works for French as well.

See https://blog.atomist.com/declaration-file-fix/ Solution # 4

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