akveo / akveo/nebular

NullInjectorError when using NbChatModule in Angular 17 with Nebular 13 (standalone components angular)

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

描述

### Issue type

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

* [x] bug report
* [ ] feature request

### Issue description

**Current behavior:**

When trying to implement NbChatModule in Angular 17 with Nebular 13, a NullInjectorError is thrown, specifically mentioning a missing provider for _NbStatusService.

**Expected behavior:**

The NbChatModule should integrate seamlessly with Angular 17, without encountering any dependency injection errors.

**Steps to reproduce:**

1. Create a new Angular 17 project.
2. Install Nebular 13 and import NbChatModule in a component.
3. Attempt to use NbChatModule in the component and observe the NullInjectorError.

**Related code:**

```
import { Component } from '@angular/core';
import { NbChatModule } from '@nebular/theme';

@Component({
selector: 'app-chat-bot',
standalone: true,
imports: [NbChatModule],
templateUrl: './chat-bot.component.html',
styleUrl: './chat-bot.component.scss'
})
export class ChatBotComponent {

}
```

![image](https://github.com/akveo/nebular/assets/60983212/34ec8bb1-5710-4ece-941b-67cd12362063)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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