While trying to open a Svelte project with TypeScript, I encountered an issue where all imports from .ts
files were showing "Cannot resolve symbol" errors.
https://i.stack.imgur.com/FCVxX.png
The errors disappear when the .ts
extension is added to the imports, but I am wondering if this is the correct solution. Additionally, even when removing the import, the IDE automatically re-adds it without the extension.
It's worth noting that JavaScript files are being created alongside the .ts files and are marked as 'excluded from compilation' in case that has any relevance.
https://i.stack.imgur.com/wWm78.png
Am I missing some configuration settings?