Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Container 布局容器的示例,测试失败,无法渲染

Open
#158 3 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
angular, typescript
Domain
frontend

Research direction

Reproduce the Container layout example from the issue in app.component.html with the described Angular CLI, Angular, Node, and RxJS versions, using the CSS imported in style.css. Start by investigating the NgClass/NgClassImpl injector error in Firefox; done means the example renders instead of showing a blank page and the reported error is resolved.

Written by the indexing model from the issue text.

Description

Issue Type:

  • Bug

Version & Environment:
element-angluar0.7.6
angluar cli:8.1.2
node:10.15.3
rxjs 6.4.0

Description:
1.项目css初始化为:css,使用路由y/n选择y
2.使用angluar cli,安装,并在style.css,导入css

测试了几个指南的例子,很多都是ok没问题的,

但是,
"Container 布局容器",例子,粘贴到app.component.html后.报错:
界面无法渲染(一片白)

浏览firefox 错误显示:

ERROR NullInjectorError: "StaticInjectorError(AppModule)[NgClass -> NgClassImpl]:
StaticInjectorError(Platform: core)[NgClass -> NgClassImpl]:
NullInjectorError: No provider for NgClassImpl!"
Angular 36

Dominant language
TypeScript
Stars
527
Forks
121
PR merge metrics
No merged PRs in 30d

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ElemeFE/element-angular

All issues in ElemeFE/element-angular

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.