tomblachut / svelte-intellij

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

Unexpected Cannot resolve file warning #233

Closed louis77 closed 3 years ago

louis77 commented 3 years ago

I get a lot of these "Cannot resolver [property]" messages although the properties are clearly defined:

Bildschirmfoto 2021-07-02 um 17 43 55

Looks to me that this happens with the src attribute most of the times. Anything I can do about it?

louis77 commented 3 years ago

Ok, so from what I understand this is not a problem of the Svelte plugin but from the IntelliJ/WebStorm linter that tries to load the url from tags with a src attribute. However that will never work in dynamic Svelte code. Is there any way the Svelte plugin can suppress these warning?

tomblachut commented 3 years ago

Hi, it could be suppressed indeed. Full featured support would require understanding of Svelte expressions by built-in IDE code

tomblachut commented 3 years ago

Since v0.20.0 those inspections are suppressed.