We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I'm working on project that verify the architecture of other projects. I'm using ts-morph to read files and get imports from them.
Everything works fine expect for some imports that could not be found.
I'm using the method getModuleSpecifierSourceFile that returns undefined.
This is an example of an import that does not work.
import * as path from 'path';
This is how i initialize the project
const project = new Project({ tsConfigFilePath: 'tsconfig.json', }); project.addSourceFilesAtPaths('src/**/*.ts');
In the compiler options in my tsconfig, I'm using :
"module": "commonjs"
I tried to add "moduleResolution": "Node", but it didn't change anything.
Thanks in advance for your help.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, I'm working on project that verify the architecture of other projects.
I'm using ts-morph to read files and get imports from them.
Everything works fine expect for some imports that could not be found.
I'm using the method getModuleSpecifierSourceFile that returns undefined.
This is an example of an import that does not work.
This is how i initialize the project
In the compiler options in my tsconfig, I'm using :
I tried to add "moduleResolution": "Node", but it didn't change anything.
Thanks in advance for your help.
The text was updated successfully, but these errors were encountered: