Sugar icon indicating copy to clipboard operation
Sugar copied to clipboard

Can't import sugar-date in TypeScript

Open lostfictions opened this issue 5 years ago • 2 comments

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)

lostfictions avatar Jul 13 '20 21:07 lostfictions

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

chavakane avatar Nov 02 '20 01:11 chavakane

I ran into this issue today. Any news?

argenos avatar Apr 11 '21 14:04 argenos