Importing images in TypeScript React – “Cannot find module” create index.d.ts file in folder src,and add this line declare module ‘*.jpg’;