Currently, I am working with vanilla Javascript and utilizing the Typescript compiler's checkJs option for type checking in VSCode. My Webpack configuration is properly set up to handle various asset types such as CSS and images during builds. However, there seems to be an issue in Code where these statements are being flagged as errors. For instance, consider this code snippet:
require("bootstrap");
require("bootstrap/dist/css/bootstrap.css");
var img = require("../img/image.png");
The first line works without any problems, but both of the following lines display an error indicating "Cannot find module (name)" for the string argument passed to require().
I have already installed @types/webpack and @types/webpack-env packages, which resolved issues related to resolve() and resolve.context(). Do you think another typings package might be missing, or should I report this problem on the DT issue tracker?