Hi,
Using a simple JavaScript Project, if I try to import a TypeScript file located at the root of the project, I get the error message: “Cannot find module…”. However, I can import a TypeScript file anywhere else in the folder hierarchy just fine.
Here’s a video reproducing the error:
https://www.dropbox.com/s/z8k6e53hbgldyf5/ts-import-at-root.webm?dl=0
…and here are the project files I used:
https://github.com/jalbr74/webclipse-ts-root-example
I came across this problem because I typically use TypeScript at the root of my project for configuration files, such as: karma.conf.ts, webpack.config.ts, etc.