DenoDDeno
Powered by
SteveSS
Denoβ€’2y 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/"
   }
}
{
   "tasks": {},
   "imports": {
      "$lib/": "./src/lib/"
   }
}
image.png
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Cannot import when index.d.ts file
togakangarooTtogakangaroo / help
17mo ago
Failing to create import alias for tauri project
MaiaMMaia / help
5mo ago
Import SCSS in TS files
MqxMMqx / help
2y ago
Cannot use import maps
kingbriKkingbri / help
17mo ago