question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No app.module.ts on src folder

See original GitHub issue

There is not app.module.ts file on my project.

I went through the getting started guide here https://github.com/angular/material2/blob/master/guides/getting-started.md

i did ng new my-project npm install --save @angular/material

and doc says

Import the Angular Material NgModule

src/app/app.module.ts

import { MaterialModule } from '@angular/material';
// other imports 
@NgModule({
  imports: [MaterialModule.forRoot()],
  ...
})
export class PizzaPartyAppModule { }

when i check src/app/ folder there is no app.module.ts file. Is doc out dated or i did some mistake?

My node version is v6.9.4

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kingkarkicommented, Jan 11, 2017

yes actually it was not the real issue. It was my confusion. app.module.ts was my projectname.module.ts. Thanks @DevVersion

0reactions
angular-automatic-lock-bot[bot]commented, Sep 5, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Where is app.module.ts file? · Issue #3949 - GitHub
There is no app.module.ts file on my src folder in project. Is app.module.ts depreciated or i m angular cli wrong version or something...
Read more >
Missing app.module.ts and src/app folders - Ionic Forum
Hi, I have an ionic project using ionic 2.2.3. I am following the guide at this link below to upgrade to ionic 3....
Read more >
File 'app/hero.ts' is not a module error in the console, where to ...
Try Restarting the editor in which you are writing the code(VS code or Sublime). Compile and Run it again. I have done the...
Read more >
AppModule: the root module - ts - GUIDE - Angular
Tell Angular how to construct and bootstrap the app in the root "AppModule". An Angular module class describes how the application parts fit...
Read more >
Understanding important folders and files - IBM
Do not modify this folder. Instead, copy this folder into src-custom and then modify as needed. app/features/*.module.ts: The page application routing ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found