I have Scene.ts file, which imports files from Objects folder
import { Camera, Plane, Cube } from './Objects';
In objects folder i have 4 files:
- Camera.ts
- Plane.ts
- Cube.ts
- index.ts
All four files has similar structure
import SceneRenderer from './../SceneRenderer'
export default class Plane/Cube/Camera implements SceneRenderer {
constructor(public gl:WebGLRenderingContext) {
}
draw() {
}
}
index.ts file exports all classes from others
export { default as Plane } from './Plane';
export { default as Camera } from './Camera';
export { default as Cube } from './Cube';
In src folder i have file Scene.ts file which import all of them:
import { Camera, Plane, Cube } from './Objects';
PROBLEM
src/Scene.ts:1:37 - error TS2307: Cannot find module './Objects'.
What is wrong?!
source code you can find here