question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Auto Import for SvelteKit (or VSCode import suggestion)

See original GitHub issue

Like I mentioned here https://github.com/antfu/unplugin-icons/issues/142#issuecomment-1054581854, Im trying to use auto-import with SvelteKit and wondered if it is supported at all.

Or if VSCode could somehow suggest imports of something like < IconMdiAccountBox/> I would be happy also very happy.

What can we do to get this working/supported?

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
userquincommented, Jun 21, 2022

@silasabbott yes you can use auto import in suelte and sveltekit, check the examples folder in the auto import repo

1reaction
antfucommented, Jun 22, 2022

This plugin only serves the icon as virtual modules. Auto-importing is out of the scope of this plugin. Maybe you can find a plugin for Svelte that work nicely with this plugin, or even write one your own.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Svelte Auto Import - Visual Studio Marketplace
Extension for Visual Studio Code - Automatically finds, parses and provides code actions and code completion for all available imports.
Read more >
import completions not showing (VSCode) · Issue #195 - GitHub
Describe the bug In VSCode, import suggestions for other .svelte ... there would be auto-import completion for components outside the import ...
Read more >
Enable JavaScript auto-import suggestions in VS Code
Auto -import problems If you work on JavaScript projects in VS Code, you've almost... Tagged with javascript, vscode, webdev.
Read more >
VS Code auto imports not using absolute paths and not indented
While I can't help with the exact solution,. I can propose a workaround that will save you some work. Import Path:.
Read more >
Any idea how to make VSCode auto import work with a lerna ...
But if I try to use the interface from the backend package vscode auto import won't show any suggestions. packages/backend/src/index.ts:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found