title: Typescript Module not found Can't resolve
body: <p>I'm building a react + typescript app in which I created a module with interfaces that are used all around my project's classes. My IDE resolves these interfaces fine but webpack always sends the following error. I tried different things but can't get that one to go away.</p>
  <p>Any help would be greatly appreciated</p>
  <pre><code>ERROR in ./assets/src/Pages/Login.tsx Module not found: Error: Can't resolve 'seeyouftp' in 'var/www/app/assets/src/Pages'
   @ ./assets/src/Pages/Login.tsx 43:18-38
   @ ./assets/src/Config/App.tsx
   @ ./assets/entries/bundle.js
  </code></pre>
  <p>My definition file is here</p>
  <pre><code>|— definitions
       |— types.d.ts
  |— entries
  |— fonts
  |— less
  |— src
  </code></pre>
  <p>Excerpt of my definition file</p>
  <pre><code>declare module 'seeyouftp' {
    interface User {
      admin: boolean;
      roles: string[];
      username: string;
    }
  
    enum AuthStates {
      success = 'success',
      error = 'error'
    }
  </code></pre>
  <p><code>tsconfig.json</code></p>
  <pre><code>{
    &quot;compilerOptions&quot;: {
      &quot;allowJs&quot;: true,
      &quot;allowUnreachableCode&quot;: false,
      &quot;baseUrl&quot;: &quot;./assets&quot;,
      &quot;esModuleInterop&quot;: true,
      &quot;forceConsistentCasingInFileNames&quot;: true,
      &quot;jsx&quot;: &quot;react&quot;,
      &quot;lib&quot;: [
        &quot;dom&quot;,
        &quot;es2019&quot;,
        &quot;esnext&quot;
      ],
      &quot;module&quot;: &quot;commonjs&quot;,
      &quot;moduleResolution&quot;: &quot;node&quot;,
      &quot;noImplicitAny&quot;: true,
      &quot;noImplicitReturns&quot;: true,
      &quot;outDir&quot;: &quot;./dist/&quot;,
      &quot;resolveJsonModule&quot;: true,
      &quot;skipDefaultLibCheck&quot;: true,
      &quot;sourceMap&quot;: true,
      &quot;strictPropertyInitialization&quot;: false,
      &quot;strictNullChecks&quot;: true,
      &quot;target&quot;: &quot;es5&quot;,
      &quot;typeRoots&quot;: [
        &quot;./assets/definitions/types.d.ts&quot;,
        &quot;./node_modules/@types&quot;
      ],
      &quot;types&quot;: [
        &quot;node&quot;
      ]
    },
    &quot;include&quot;: [
      &quot;./assets/src/**/*&quot;,
      &quot;./assets/definitions/**/*&quot;
    ],
    &quot;exclude&quot;: [
      &quot;node_modules&quot;
    ]
  }
  </code></pre>
  <p>I import the created interfaces like so:</p>
  <p><code>import { Item, PlayableMedia } from 'seeyouftp';</code></p>