Property 'getType' does not exist on type 'typeof import

Viewed 790

I am upgrading from Angular 12 to Angular 13 - when building I get some errors in the terminal

Error: src/app/components/feeds/replies/reply.ts:81:31 - error TS2339: Property 'getType' does not exist on type 'typeof import("/Users/me/Sites/app-ng/node_modules/@types/mime/index")'.

81         const mimeType = mime.getType(item) || '';

I have checked the code and the getType does exist on mime class (I can control click in the file and it opens the relevant file fine) - anyone know why this error occurs and how I fix it?

0 Answers
Related