TypeStrong / dts-bundle

Export TypeScript .d.ts files as an external module definition
MIT License
308 stars 57 forks source link

Unable to reference external typings #59

Open andrew-buckley opened 6 years ago

andrew-buckley commented 6 years ago

I'm trying to use the "externals" flag to get the d.ts bundle to include typings for external libraries that exist in my node_modules folder, however for the life of my I cannot get this to work properly. I continually get : TypeError: Cannot read property 'file' of undefined. I've looked through other issues here and it seems some involve the author manually hacking the project, and others just seem to not have been resolved. Anyone else having trouble with this? I'd appreciate any help.

cliedelt commented 5 years ago

i have this problem aswell !

yonixw commented 3 years ago

I think it is only for external files (outside directory) but will not resolve module X to node_modules\X.

So this will not ❌ work:

But this did ✔ work for me:

This project just need a little push :)