documentcloud / underscore-contrib

The brass buckles on Underscore's utility belt
MIT License
621 stars 118 forks source link

Modular import cause error in typescript apps #251

Closed marzzy closed 1 year ago

marzzy commented 1 year ago

As you can see in this Codesand example, I try to use the modular import in a typescript project, it works, but cause the error below:

Cannot find module 'underscore/modules/map' or its corresponding type declarations.ts

jgonggrijp commented 1 year ago

Closing in favor of https://github.com/jashkenas/underscore/issues/2975, because this is about core Underscore (or its corresponding DefinitelyTyped package).