Closed idiotWu closed 7 years ago
While using the module with typescript as
import * as HttpStatus from 'http-status';
It throws an error with error TS2307: Cannot find module 'http-status'.
error TS2307: Cannot find module 'http-status'.
I think this failure is caused by the main entry in package.json, problem gets resolved once I change it into main: ./lib/index.js.
main
main: ./lib/index.js
Though this is likely to be a bug of typescript itself (Microsoft/TypeScript#13484), it would be appreciated if you can do a quick fix :)
try now with version 0.2.5, main is now ""main": "lib/index.js""
Thanks!
While using the module with typescript as
It throws an error with
error TS2307: Cannot find module 'http-status'.
I think this failure is caused by the
main
entry in package.json, problem gets resolved once I change it intomain: ./lib/index.js
.Though this is likely to be a bug of typescript itself (Microsoft/TypeScript#13484), it would be appreciated if you can do a quick fix :)