Closed unlocomqx closed 3 years ago
It might be related to misconfiguration in tsconfig - target or lib sections, not the plugin
After adding "es2017" to tsconfig, I couldn't reproduce it on the svelte template. It still occurs in my main project though but I guess it doesn't come from the plugin itself.
I was able to reproduce on the svelte template. The issue doesn't occur on App.svelte but on other components only (that are not imported by main.ts) Can you check if you can repro?
App.svelte
Comp.svelte
When Comp.svelte is imported in main.ts the issue goes away
For info, String.includes
is part of ES2015
and Array.includes
is part of ES2016
according to intellij declaration files at least
Minimal Repo: https://github.com/unlocomqx/unresolved-functions
Hey @unlocomqx thanks for reporting, I was able to reproduce. I'll close this in favor of https://youtrack.jetbrains.com/issue/WEB-51050
Sorry for double reporting, I thought it must be an issue with webstorm itself not the plugin but the webstorm team member scoped it to the plugin anyway! Cheers.
No problem :)
Some functions are not resolved when using lang=ts
I used the svelte template to reproduce
I don't know if it's caused by my IDE settings or by the extension The JS Language level is set to ES6+ if that's relevant to this