Open EladBezalel opened 1 year ago
For anyone facing this issue or a similar issue involving JS files, apparently you must specify allowJs
in the Project constructor - it's not enough for it to be configured in your tsconfig
files.
const project = new Project({ compilerOptions: { allowJs: true } });
Describe the bug
Version: 17.0.1
To Reproduce When using
fixUnusedIdentifiers
on source of a js file, this error occursError: Could not find source file
To reproduce:
i also have
src
folder withfile.js
When i run this code i get this error:
Expected behavior Should fix unused identifiers or at least not fail