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
I just discovered the maxNodeModuleJsDepth compiler option!
It seems that the default for maxNodeModuleJsDepth is 0?
Setting it to 1 (or greater, obviously) fixes the problem. (Also, it seems I don't need to use the --checkJS to make this work after all).
Anyway, it would be nice if the maxNodeModuleJsDepth were set to 1 by default, so that only the --allowJS is needed for top-level node modules. Closing since I found a solution though.
TypeScript Version: 2.4.1
Code
Compiling with
commonjs
module resolution, and the--allowJS
and--checkJS
compiler options.Expected behavior:
Actual behavior:
[ts] Cannot find module 'module-in-node_modules-with-jsdoc-annotations'.
The text was updated successfully, but these errors were encountered: