autosuggest-highlight icon indicating copy to clipboard operation
autosuggest-highlight copied to clipboard

Error: error TS6053: File '/home/[full path to my workspace]/node_modules/@types/autosuggest-highlight/index.d.ts' not found.

Open richard-stafflink opened this issue 8 months ago • 2 comments

I have a yarn workspace with several packages, one package/project has a reference to autosuggest-highlight and the @types package. And in another unrelated package/project (A Zod type generator package) when I run yarn ts-to-zod --all I get this error:

Error: error TS6053: File '/home/[full path to my workspace]/node_modules/@types/autosuggest-highlight/index.d.ts' not found. The file is in the program because: Entry point for implicit type library 'autosuggest-highlight' with packageId '@types/autosuggest-highlight/[email protected]'

The two packages do not reference each other at all, so I'm confused as to why I'm getting this error. Alos, the file '/home/[full path to my workspace]/node_modules/@types/autosuggest-highlight/index.d.ts' does exist This error only started happening since I updated a few unrelated NPM/YARN packages.

There are other that seem to be having a similar issue too: https://stackoverflow.com/questions/47814004/module-not-found-cant-resolve-autosuggest-highlight-match

I've tried rm -rf ./**/node_modules && yarn, I tried deleting the yarn.lock file and reinstalling packages - none of which fixed the issue.

richard-stafflink avatar Feb 19 '25 00:02 richard-stafflink