You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❯ npx webpack
Starting type checking service...
Using 1 worker with 2048MB memory limit
Hash: 34452b84502b638c21f7
Version: webpack 4.20.2
Time: 2868ms
Built at: 10/06/2018 5:00:49 PM
Asset Size Chunks Chunk Names
main.js 3.76 KiB main [emitted] main
Entrypoint main = main.js
[./app.js] 21 bytes {main} [built]
ERROR in /Users/semenov/tmp/fts/node_modules/.registry.npmjs.org/@types/koa/2.0.46/node_modules/@types/cookies/index.d.ts
ERROR in /Users/semenov/tmp/fts/node_modules/.registry.npmjs.org/@types/koa/2.0.46/node_modules/@types/cookies/index.d.ts(12,26):
TS2307: Cannot find module 'express'.
ERROR in /Users/semenov/tmp/fts/node_modules/.registry.npmjs.org/@types/koa/2.0.46/node_modules/@types/cookies/index.d.ts
ERROR in /Users/semenov/tmp/fts/node_modules/.registry.npmjs.org/@types/koa/2.0.46/node_modules/@types/cookies/index.d.ts(13,26):
TS2307: Cannot find module 'connect'.
ERROR in /Users/semenov/tmp/fts/node_modules/fork-ts-checker-webpack-plugin/lib/types/index.d.ts
ERROR in /Users/semenov/tmp/fts/node_modules/fork-ts-checker-webpack-plugin/lib/types/index.d.ts(3,23):
TS2307: Cannot find module 'chalk'.
ERROR in /Users/semenov/tmp/fts/node_modules/fork-ts-checker-webpack-plugin/lib/types/NormalizedMessage.d.ts
ERROR in /Users/semenov/tmp/fts/node_modules/fork-ts-checker-webpack-plugin/lib/types/NormalizedMessage.d.ts(2,30):
TS2307: Cannot find module 'tslint'.
Expected result
Type checks within non-flattened node_modules work fine (same as they do with tsc, ts-node, tslint etc.)
Honestly, I would expect fork-ts-checker-webpack-plugin not to descend into each and every module in node_modules until it's used by webpack compilation. However there are probably reasons for it to do that? Like reading all global augmentations?
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If a project uses non-flattened node_modules (such as created by
pnpm
),fork-ts-checker-webpack-plugin
fails to load typings of nested dependencies.Steps to reproduce
Clone https://github.com/IlyaSemenov/fork-ts-checker-webpack-plugin-pnpm-reproduction, then:
Make sure the compilation succeeds, then:
The type checks will fail.
Actual result
Expected result
node_modules
work fine (same as they do withtsc
,ts-node
,tslint
etc.)fork-ts-checker-webpack-plugin
not to descend into each and every module innode_modules
until it's used by webpack compilation. However there are probably reasons for it to do that? Like reading all global augmentations?The text was updated successfully, but these errors were encountered: