While I am working with Angular, TypeScript, and Gulp, my module system is CommonJS. However, I encountered an error when trying to import a module into my main.ts file:
Error: Cannot find external module 'modules.ts'.
Here is the snippet from my main.ts file:
/// <reference path="../../typings/tsd.d.ts" />
import modules from 'modules.ts';
const app = angular.module('myApp', []);
And this is the content of modules.ts file:
module test {
export class a {
}
}