title: Typescript - How can I import png files into my typescript file?
body: <p>I put up my own typescript project with the Parcel compiler and got everything running on the built-in server. I implemented pixi.js and wanted to import .png files into my .ts files. But when I try to import it says it can't find the module, even tho both files are in the same folder? What am I missing?</p>
  
  <p><a href="https://i.stack.imgur.com/Yj0hq.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Yj0hq.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/Mu1N6.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Mu1N6.png" alt="enter image description here"></a></p>
  
  <p>I tried to do the following</p>
  
  <pre><code>npm install @types/node --save-dev
  </code></pre>
  
  <p><strong>tsconfig.json (located in my root folder)</strong></p>
  
  <pre><code>{
    "compilerOptions": {
      "types": ["node"],
      "typeRoots": ["node_modules/@types"]
    }
  }
  </code></pre>