The quickest fix is to skip type checking. You can do this by using the --no-check flag.

    Or from esm.sh:

    You could also try to provide only specifically what the 3rd party package is missing. For example the package @aws-sdk/client-dynamodb has a dependency on the type in its type definitions. In one of the modules of your project that imports it as a dependency, you could put something like this in there which will solve the problem:

    Getting type errors like cannot find document or HTMLElement