首页 新闻 会员 周边 捐助
1
回答数

回答被采纳 30 Altinity Kubernetes Operator 如何部署 ClickHouse 的 NodePort Service

在 k8s 集群上通过 Altinity Kubernetes Operator 部署了 clickhouse,但只部署了 ClusterIP service,请问如何部署 NodePort serv
1
回答数

回答被采纳 30 Altinity Kubernetes Operator 部署的 ClickHouse 如何调整 PVC 空间大小

开始设置的 PVC 空间偏小了,想调大一些,修改清单文件,部署时不让修改 PVC 的大小
1
回答数

回答被采纳 30 Angular: 迁移到 Standalone Component 后 ViewChild 无法正常工作

项目从 angular 15 升级到 angular 19 之后,将 component 迁移到 standalone component,ng build 已经没有任何错误,但运行时通过 ViewC
1
回答数

回答被采纳 30 angular 项目报错 "error-handler.ts:20 TypeError: stackTrace.fromError is not a function"

这是园子博客后台升级到 angular 19 后解决升级问题中遇到的,浏览器控制台报错信息截图如下 对应的 typescript 代码 if (!environment.production) { i
1
回答数

回答被采纳 30 angular 依赖注入问题:如何避免在很多 component 中注册同一个 class

下面的 class 在很多 component 中用到,在每个 standalone component 的 providers 中添加很麻烦,但又不能使用 providedIn: "root" 注册
1
回答数

回答被采纳 30 升级至 angular 19 后报错:"NG05105: Unexpected synthetic property @tabSwitchMotion found"

升级至 angular 19 并且迁移至 standalone components 后运行时报错 main.ts:6 RuntimeError: NG05105: Unexpected synthe
1
回答数

回答被采纳 30 angular 19 中 HttpClient 的依赖注入问题

园子博客后台升级至 angular 19 并改用 standalone bootstrapping api import { bootstrapApplication } from '@angular
1
回答数

回答被采纳 30 vscode 中如何方便地在 angular compoment 的不同文件之间切换

也就是在同一个组件的 .ts 文件、.html 模版文件、.scss(或者 .less)样式文件之间切换
1
回答数

回答被采纳 30 angular: standalone component 使用 [formControl] 的问题

下面的 component template 代码 <input [formControl]="control"> 已经添加了 FormsModule 的引用 imports: [FormsModul
2
回答数

回答被采纳 园子力量这么强嘛?

服务直接干停机了嘛哈哈哈
1
回答数

回答被采纳 30 angular standalone component 中使用 ngModel 的问题

将一个 component 转换为 standalone component <div> <cnb-spinner [show]="isLoading"> <cnb-editors-selector
1
回答数

回答被采纳 30 在 Angular 19 中如何以懒加载的方式动态创建 Component

懒加载是是指 lazy 或者 defer 方式,动态创建是在运行时创建 Component,请问在 angular 19 中如何实现?
1
回答数

回答被采纳 30 Angular 项目使用 Standalone Components 时如何全局 import CommonModule

园子博客后台升级到 angular 19 后,将所有 component 都迁移到 standalone component,然后发现连最简单的 *ngIf 与 [ngClass] 无法使用 buil
1
回答数

回答被采纳 30 如何让 vscode 在保存时自动格式化 typescript 代码并修复 lint 错误

请问如何让 vscode 按照当前 angular 项目中的 .eslintrc.js 配置在保存时自动格式化 typescript 代码并修复 lint 错误
1
回答数

回答被采纳 30 eslint 对 .prettierrc.js 报错的问题

在 vsocde 中 eslint 对 .prettierrc.js 报错,请问如何解决这个问题? File is a CommonJS module; it may be converted to
1
回答数

回答被采纳 30 qdrant pod 启动时报错:"Failed to connect to http://qdrant-1.qdrant-headless:6335/"

在 kubernets 集群上使用 helm 部署 qdrant,只部署了一个 replica,pod 在启动时日志中有下面的错误与警告,但 qdrant 可以正常使用 2024-12-27T23:0
1
回答数

回答被采纳 30 ng-zorro-antd 升级后 nz-dropdown-menu 样式出现问题

从 angular 15 升级到 angular 19,从 ng-zorro-antd 15 升级到 ng-zorro-antd 19 之后,nz-dropdown-menu 出现问题 之前正常时是这
1
回答数

回答被采纳 30 dotnet restore 时出现 MSB4018 错误

之前好好的,昨天磁盘空间被用完,清理出磁盘空间后,执行 dotnet restore 命令时会出现很多 MSB4018 错误 #23 5.027 /usr/share/dotnet/sdk/9.0.1
1
回答数

回答被采纳 30 angular 19 中遇到 NzDropDownDirective 的依赖注入问题

下面的 Directive 实现,运行时会报错 NullInjectorError: No provider for t! @Directive({ providers: [NzDropDownDir
1
回答数

回答被采纳 30 ng-zorrod-antd 从 15 升级到 19 后出现 NG0203 错误

在园子的博客后台升级到 angular 19 的过程中,ng-zorrod-antd 从 15.10 升级到 19.0.0-beta.0 使用 ng-zorrod-antd 15.10 时,有下面的创
1
回答数

回答被采纳 30 angular 测试中的依赖注入问题:"No provider for InjectionToken NZ_MODAL_DATA"

Component 代码如下 export class BlogCategoryEditComponent implements OnInit { constructor( @Inject(NZ_MO
1
回答数

回答被采纳 30 更新 jest.config.ts 后遇到 import 路径解析问题

angular 项目升级 jest 与 jest-preset-angular 之后,更新了 jest.config.ts import ngPreset from 'jest-preset-angu
1
回答数

回答被采纳 30 angular 19 项目运行 test 报错:"Jest encountered an unexpected token"

angular 19 项目通过 jest 运行测试,报错 jest.config.ts 配置代码 import presets from 'jest-preset-angular/presets';
1
回答数

回答被采纳 升级到 angular 19 后运行测试出现警告 "This preset is DEPRECATED"

从升级到 angular 15 升级到 angular 19 后,运行 test 出现下面的 warning > node --experimental-vm-modules --no-warning