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

VSCode can't find scss import in Svelte component if path contains $lib alias

$
0
0

Vite preprocess can handle $lib aliases inside component styles.I would like to use

<style lang="scss">  @import '$lib/styles/mixins';  ...</styles>

which works as expected.

But VSCode with Svelte extension doesn't handle these import and show annoying lint error

Error: Can't find stylesheet to import.

Is there any way to fix it or mute error?


Viewing all articles
Browse latest Browse all 1753

Latest Images

Trending Articles



Latest Images

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