Skip to content

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

@rj-au

Description

@rj-au

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions