bun
bun copied to clipboard
tsc failing due to missing second order type definition file, works with npm
What version of Bun is running?
initial version: 1.0.16+800fb1290 newest reproduction: 1.0.25+a8ff7be64
What platform is your computer?
Linux 6.6.3-1-default x86_64 x86_64
What steps can reproduce the bug?
gh repo clone iyefrat/bun-cannot-find-type-definition-reproduction
cd bun-cannot-find-type-definition-reproduction
bun install
bun run tsc
What is the expected behavior?
typechecking passes
What do you see instead?
error TS2688: Cannot find type definition file for 'express-unless'.
The file is in the program because:
Entry point for implicit type library 'express-unless'
Found 1 error.
Additional information
This works with npm:
gh repo clone iyefrat/bun-cannot-find-type-definition-reproduction
cd bun-cannot-find-type-definition-reproduction
npm install
npm exec tsc
(typechecking passes, no output fom npm exec tsc)
need to check later but one thing that could be at play here is that @types/express-unless is empty and the type definition has been moved upstream to the express-unless package itself