Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Angular Basics Angular Components Nesting Components

Sarah Degros
Sarah Degros
6,760 Points

Cannot find module './entries' in app.module.ts

import { NgModule } from '@angular/core'; 
import { BrowserModule } from '@angular/platform-browser'; 
import { AppComponent } from './app.component';
import { EntryListComponent, EntryComponent } from './entries'; 

@NgModule({
    imports: [BrowserModule],
    declarations: [
        AppComponent,
        EntryComponent,
        EntryListComponent
    ],
    bootstrap: [AppComponent]
})
export class AppModule {

}
export * from './entry-list/entry-list.component';
export * from './entry/entry.component';

2 Answers

Sarah Degros
Sarah Degros
6,760 Points

Okay, seems like found the answer to my question : my index.ts file was located in the folder "entry-list".

Sarah Degros
Sarah Degros
6,760 Points

Hi Dane, Thank you so much for helping me out

>src
  >>app
>>>entries

>>>>entry
>>>>>entry.component.css
>>>>>entry.component.html
>>>>>entry.component.ts

>>>>entry-list
>>>>>entry-list.component.css
>>>>>entry-list.component.html
>>>>>entry-list.component.ts
>>>>>index.ts

>>>app.component.css
>>>app.component.html
>>>app.component.ts
>>>app.module.ts