fannheyward / coc-deno

Deno extension for coc.nvim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

deno no-cache-npm when using import maps for npm modules

alextricity25 opened this issue · comments

In my deno.json, I have the following import maps:

{
  "imports": {
    "google-cloud/storage": "npm:/@google-cloud/storage"
  }
}

In my mod.ts file:

import { Storage } from 'google-cloud/storage';

const storage = new Storage();

coc-deno is giving me the following error (even after running CocCommand deno.cache:

image

However, when I use the npm: specifier, coc-deno seems to know what to do:
image

Language server's issue.