tomblachut / svelte-intellij

Svelte components in WebStorm and friends
MIT License
485 stars 38 forks source link

Support for path alias is broken #284

Closed korywka closed 1 year ago

korywka commented 2 years ago

new svelte kit uses extend inside jsconfig.json:

{
    "extends": "./.svelte-kit/tsconfig.json"
}

looks like webstorm doesn't follow it and can't resolve path alias:

import { requestJSON } from '$lib/request.js';
image image
WebStorm 2022.1
Build #WS-221.5080.193, built on April 10, 2022
Licensed to MacPaw / Taras Neporozhniy
Subscription is active until March 31, 2023.
Runtime version: 11.0.14.1+1-b2043.25 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.3.1
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 12
Registry:
    eslint.additional.file.extensions=svelte

Non-Bundled Plugins:
    org.toml.lang (221.5080.126)
    org.rust.lang (0.4.168.4555-221)
    dev.blachut.svelte.lang (0.22.0)
korywka commented 2 years ago

Looks like it doesn't work without extends too. Can someone confirm please?

Maggi64 commented 2 years ago

@korywka I resolved problems with linking of internal packages by downgrading to webstorm 2021.3.3. Maybe try that for now.

korywka commented 2 years ago

I solved it with migrating to VSCode. WebStorm very nice IDE with such poor quality Svelte support. Not going to renew my license 😕

tomblachut commented 1 year ago

Not a problem in Svelte plugin. Should be working in 2023.1 already.