akveo / akveo/ngx-admin

NbContextMenu not working when clicking the NbUser, throwing error in console

未关闭
#1,896 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
25.7k
派生
7.9k
PR 合并指标
30 天内没有已合并 PR

描述

### Issue type

**I'm submitting a ...** (check one with "x")

* [ x ] bug report
* [ ] feature request
* [ ] question about the decisions made in the repository

### Issue description

**Current behavior:**
followed the steps in the below
https://akveo.github.io/nebular/docs/components/context-menu/overview#nbcontextmenudirective

**Expected behavior:**
Context menu should be populated, but getting error in console.

**Steps to reproduce:**

**Related code:**

```
insert short code snippets here
```

### Other information:
ERROR:
NbContextMenuComponent.html:3 ERROR Error: StaticInjectorError(AppModule)[NbMenuComponent -> NbMenuInternalService]:
StaticInjectorError(Platform: core)[NbMenuComponent -> NbMenuInternalService]:
NullInjectorError: No provider for NbMenuInternalService!
at NullInjector.push../node_modules/@angular/core/fesm5/core.js.NullInjector.get (core.js:1062)
at resolveToken (core.js:1300)
at tryResolveToken (core.js:1244)
at StaticInjector.push../node_modules/@angular/core/fesm5/core.js.StaticInjector.get (core.js:1141)
at resolveToken (core.js:1300)
at tryResolveToken (core.js:1244)
at StaticInjector.push../node_modules/@angular/core/fesm5/core.js.StaticInjector.get (core.js:1141)
at resolveNgModuleDep (core.js:8369)
at NgModuleRef_.push../node_modules/@angular/core/fesm5/core.js.NgModuleRef_.get (core.js:9057)
at resolveDep (core.js:9422)
**npm, node, OS, Browser**
```

```

**Angular, Nebular**
```

```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。