I am using TypeScript 1.6 with ES6 modules syntax.

My files are:

**test.ts:**

```
module App {
  export class SomeClass {
    getName(): string {
      return 'name';
    }
  }
}

```

**main.ts:**

```
import App from './test';

var a = new App.SomeClass();

```

When I am trying to compile the `main.ts` file I get this error:

> 
> **Error TS2306: File 'test.ts' is not a module.**
> 
> 
> 

How can I accomplish that?