Skip to content
New issue

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

Cannot find module '.png' or its corresponding type declarations #42

Closed
rexkenley opened this issue Jul 25, 2022 · 1 comment
Closed

Comments

@rexkenley
Copy link

I have a project with the following configuration.
image
image

It is working fine in the terminal and vscode, but when I ran it through tsc-files it gives me an error.
image

It doesn't look like it is reading from the tsconfig.json file. What am I doing incorrectly?

Thanks!

@gustavopch
Copy link
Owner

Same as #20. You have to explicitly pass the ambient declarations file to tsc-files, e.g.: tsc-files file-you-want-to-check.ts ambient-declarations.d.ts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants