SteveSS
Denoβ€’15mo agoβ€’
6 replies
SteveS

Cannot get TS to accept $lib import alias

Super frustrating. I'm using sveltekit which has a default $lib import alias. I've added the alias to my deno.json, and the import itself works, but the TS error won't go away.

Any ideas?

{
   "tasks": {},
   "imports": {
      "$lib/": "./src/lib/"
   }
}
image.png
Was this page helpful?