How to correctly import custom types in typescript

You’re facing this error because @types/... is a global import. For example import { AuthKeyT } from '@types/app' means your’re trying to import from @types that is in node_modules.

You can fix this by changing @types to something like @customTypes or by changing the path for your types folder something like @src/types... while importing.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)