Closed
Description
In a JS file (in my case, a webpack.config.js
) of a project, I have a variable declaration that does a require
of another package in the same repo:
const CssPrependClassPlugin =
require('<myToolsPackage>/lib/webpack/CssPrependClassPlugin').CssPrependClassPlugin;
The <myToolsPackage>
is compiled with "type": "commonjs"
in the package.json
, and "module": "node16", "moduleResolution": "node16", "verbatimModuleSyntax": false
in its tsconfig. This combination works well, at least with the regular TypeScript engine.
With the regular TypeScript engine, I am able to get IntelliSense for that plugin, as well as alerts of invalid/incomplete input:
But with tsgo, the variable just resolves to any
, and yields no errors:
Other IntelliSense still works in the file, e.g.,