Reputation: 1153
My problem is not causing any issue in production or development, and the application works perfectly fine, but PhpStorm and WebStorm are showing red lines of error related to type imports in TypeScript.
Here's an example that causes errors to appear in the IDE:
import {type UserConfig} from 'vite'
import { createPinia, type Pinia } from 'pinia';
// IDE keep showing error due to this type of import and telling me : ', expected'
Upvotes: 1
Views: 477
Reputation: 93908
What IDE build do you use? Type modifiers on import names (https://devblogs.microsoft.com/typescript/announcing-typescript-4-5-beta/#type-on-import-names) are supported since version 2021.3
Upvotes: 1