Expected Behaviour
ts-loader should not report TS2305
Actual Behaviour
ts-loader report TS2305 error
Steps to Reproduce the Problem
- clone https://github.com/xbtsw/typescript-pnpm
npm i -g pnpm
pnpm install
- run
npm run tsc and observe that the compilation success
- run
npm start and observe error
This happens to both Linux and Windows 10 host.
Location of a Minimal Repository that Demonstrates the Issue.
https://github.com/xbtsw/typescript-pnpm
It looks like the type information is not visible to TypeScript when the dependency are symlinked and are compiled via ts-loader. I am willing to look into it but not sure where to start.