TypeScript cannot find module error

According to your directory structure, your products folder is one step down. You should try this import:

import { ProductListComponent } from '../products/product-list.component';

Or move your products folder inside your app folder


From your screenshot it looks like products is not inside your app folder. It's one level higher so it cannot be found by the typescript compiler. The problem should be fixed by moving it inside the app folder.