Angular Karma Jasmine Error: Illegal state: Could not load the summary for directive

You passed HeroDetailComponent to TestBed.createComponent() without declaring the component first: TestBed.configureTestingModule({ imports: [AppModule, CommonModule, FormsModule, SharedModule, HeroRoutingModule, ReactiveFormsModule ], providers: [ {provide: APP_BASE_HREF, useValue: “https://stackoverflow.com/”} ], declarations: [HeroDetailComponent] }).compileComponents(); Hope it helps. Update for following errors in your test: Added some more imports (just take your HeroModule as a blueprint because that’s basically what you … Read more

NPM cannot install dependencies – Attempt to unlock something which hasn’t been locked

As per photusenigma at: https://github.com/npm/npm/issues/4815 Run these commands in a terminal window (note – DON’T replace the $USER part…thats a linux command to get your user!): sudo chown -R $USER ~/.npm sudo chown -R $USER /usr/local/lib/node_modules …and…if you’re on a mac (like I am), and still see errors after running these commands, then run this … Read more

When to use “chore” as type of commit message?

You can see a short definition in “Git Commit Msg”: chore: updating grunt tasks etc; no production code change It is used in: “Semantic Commit Messages” and in the project “fteem/git-semantic-commits“. git chore “commit-message-here” -> git commit -m ‘chore: commit-message-here’ Modifying the .gitignore would be part of the “chores”. “grunt task” means nothing that an … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)