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

Can't import sugar-date in TypeScript #667

Open
lostfictions opened this issue Jul 13, 2020 · 2 comments
Open

Can't import sugar-date in TypeScript #667

lostfictions opened this issue Jul 13, 2020 · 2 comments

Comments

@lostfictions
Copy link

Hi there, I'm trying to use sugar-date, but its typings don't appear to be exported properly, preventing its use in TypeScript:

Neither of these approaches work:

import { Date as  d } from 'sugar-date';
import * as sugar from 'sugar-date';

They both yield this error:

File '/project/node_modules/sugar-date/sugar.d.ts' is not a module.ts(2306)
@chavakane
Copy link

Bumping this.. I am having the same issue with sugar-inflections
sugar-inflections/sugar.d.ts' is not a module.

@argenos
Copy link

argenos commented Apr 11, 2021

I ran into this issue today. Any news?

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

3 participants