You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've found that in a test project, ts-morph seems to not properly resolve React components.
constproductionFiles=production.getSourceFiles();// Now resolve dependencies of entry files to find all production filesproduction.resolveSourceFileDependencies();constproductionFiles=production.getSourceFiles();debugLogSourceFiles(options,1,'Included production source files',productionFiles);
productionFiles simply ignores imports that are React imports
Will follow up with a minimal viable repro / repo later.
The text was updated successfully, but these errors were encountered:
molszanski
changed the title
Sometimes jsx/tsx files are not visible
Sometimes imported jsx/tsx files are not recognised as productionFilesOct 16, 2022
Thanks for reporting this, happy to look into a repro. Alternatively, you could open a PR with a new folder and some files in tests/fixtures, so we can add (failing) tests right there.
I've found that in a test project,
ts-morph
seems to not properly resolve React components.productionFiles
simply ignores imports that areReact
importsSeems to be a related issue
dsherret/ts-morph#1250
Will follow up with a minimal viable repro / repo later.
The text was updated successfully, but these errors were encountered: