Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1541

Svelte automatic imports do not work in Visual Studio Code

$
0
0

In preview application I was working on when I typed the name of the component. Like this:I gave an import. Automatically added to script.

`<BaseSelect options={optionsDifficulty} defaultValue={defaultDifficultValue} on:change {handleDifficultChange}> </BaseRadio>
import BaseSelect from '$lib/Inputs/BaseSelect.svelte';

`

I did not write anything. It has just appeared. But in my new project it is not working. I need to write the import manually. Do you guys know how to setup this automatic import? I do not like autoimport way. Because I do not see the imports so I do not have control over it.

I tried autoimport as an extension, but it does not show list of imports.

My IDE is Visual Studio Code.


Viewing all articles
Browse latest Browse all 1541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>