#node and typescript errors

1 messages · Page 1 of 1 (latest)

pine cipher
#

Hi, I have import maps defined in deno.json and source files in src/ folder
deno.json:

{
  "imports": {
    "ioredis": "npm:ioredis"
  }
}

src/file.ts

import Redis from 'npm:ioredis';

So, when I try to run deno run -A --check src/file.ts I get a lot of unrelated TypeScript errors: https://pastes.dev/eFLkEAnhjA
What can I do?

hot laurel
#

You can also fix it with typescript <reference .../> directives, like this:
#general message

pine cipher
#

thank you 👍