2

Maybe someone know how to fix this? I tried to create index.d.ts file and add

declare module '*.png'

inside but nothing helped

enter image description here

tanmay
  • 7,761
  • 2
  • 19
  • 38
anthonyro
  • 99
  • 1
  • 11
  • 1
    Does this answer your question? [Typescript image import](https://stackoverflow.com/questions/51100401/typescript-image-import) – Mario Petrovic Aug 04 '20 at 09:45
  • This might be entirely about you path. Are you able to share a screenshot that shows your file path? (Basically, how your files are arranged - interest in this is the path to `images`) – MwamiTovi Aug 05 '20 at 07:16
  • @MwamiTovi I don't think that there is a problem in file path. I tried to use const articleLogo = require("./images/articleLogo.png") and it works correct. But i need to use import – anthonyro Aug 05 '20 at 08:07
  • WIth `import`, try capitalizing the entire thing e.g. `import ArticleLogo from...` and see what happens – MwamiTovi Aug 06 '20 at 01:45

0 Answers0