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

回答被采纳 30 angular 依赖注入问题:使用 inject(type) 时什么情况下需要用 provider

比如下面的注入代码 private readonly _notify = inject(NotifyService); private readonly _noAnimation = inject(N
1
回答数

回答被采纳 30 升级到 .NET 9 后 build 时 NSwagExe_Net90 报错

在 .csproj 中有下面的 Target <Target Name="GenerateNSwag"> <ItemGroup> <CurrentOpenApiReference> <Command>
1
回答数

回答被采纳 30 如何使用 angular 18/19 library 中的 Component

angular 18/19 中实现字节的 library 已经不需要 NgModule,详见之前的博问 https://q.cnblogs.com/q/150466 之前实现的 library 中的
1
回答数

回答被采纳 30 npm publish 时报错:"This operation requires a one-time password"

在 npmjs.com 后台设置中创建了 classic token,然后用这个 token 发布 npm 包时报错: npm notice Publishing to https://registr
1
回答数

回答被采纳 30 升级到 angular 19 后自己实现的 library 编译时报错

ng-editormd.module.ts 的实现代码如下: import { EditormdComponent } from './ng-editormd.component'; import {
1
回答数

回答被采纳 30 修改 package.json 的 peerDependencies 中包的版本后如何更新 package.lock.json

package.json 中 peerDependencies 部分 "peerDependencies": { "@angular/common": "17.x", "@angular/core":
1
回答数

回答被采纳 30 angular build 生成很多 chunk-XXX.js 文件

angular 版本是 19,builder 用的是 esbuild,build 完成后 dist 文件夹中很多 chunk-XXX.js 文件,请问为什么会生成这么多 chunk 文件?
1
回答数

回答被采纳 30 npm install 时自动对 package.lock.json 格式化的问题

今天运行 npm intall 安装包后发现 package.lock.json 被自动格式化了,tab size 用的是4个空格,格式化之前是2个空格,如何还是保持 tab 使用2个空格?
1
回答数

回答被采纳 30 升级到 angular 19 后报错:Dynamic require of "./chunk-6SFKHDOK.js" is not supported

园子的博客后台升级到 angular 19 后,build 成功,但部署后浏览器访问时却报下面的错误 Dynamic require of "./chunk-6SFKHDOK.js" is not s
1
回答数

回答被采纳 30 angular 项目使用 esbuild 遇到的 build 输出路径问题

园子的博客后台前端框架使用的是 angular,之前 builder 用的是 webpack,build 输出文件会放在 dist 文件夹中 "builder": "@angular-builders
1
回答数

回答被采纳 30 docker 如何删除会自动重启的容器

通过 docker rm -f 强制删除容器后依然会重启,docker update --restart=no 后再强制删除,问题依旧
1
回答数

回答被采纳 30 typescript: 字符串数组转换为对象数组的问题

将下面包含文件名的字符串数组 const fileNames = [ 'code-sandbox.entry.less', 'hljs-line-numbers.entry.less', 'cnb-m
1
回答数

回答被采纳 30 docker swarm 集群更换节点服务器后遇到奇怪问题

使用阿里云 ecs 部署的 docker swarm 集群,节点服务器用的是抢占式实例,被突然释放后,更换了新的节点服务器,更换后 redis 容器总是无法正常启动,很是奇怪 ID NAME IMAG
1
回答数

回答被采纳 30 angular build 警告:"Ignoring this import because 'xxx' was marked as having no side effects"

园子博客后台升级至 angular 19 并且将 build 引擎设置为 esbuild 后,build 时会出现下面的警告: [WARNING] Ignoring this import becau
1
回答数

回答被采纳 30 升级至 ng-zorro-antd 19 后 nz-segmented 不支持 nzLabelTemplate 指令

对应的 component html 代码 <nz-segmented [(ngModel)]="selectedListTypeIndex" [nzOptions]="listTypeOptions
1
回答数

回答被采纳 30 angular-split 升级到 18 之后报错:"Property 'pipe' does not exist on type"

angular 升级到 19,angular-split 升级到 18,build 时报错 [ERROR] TS2339: Property 'pipe' does not exist on type
1
回答数

回答被采纳 30 angular 19 项目 build 时报错:No loader is configured for ".less" files

错误详细信息如下 [ERROR] No loader is configured for ".less" files: src/app/modules/tinymce5/tinymce5.skin.l
1
回答数

回答被采纳 30 angular-split 升级到 18 之后报错

报错信息如下: Module '"angular-split"' has no exported member 'IOutputData' 报错发生于下面的 import 代码 import { IO
1
回答数

回答被采纳 30 升级至 angular 19 后报错:"'imports' is only valid on a component that is standalone"

升级至 angular 19 后并使用 "@angular-devkit/build-angular:application",build 时报错 TS-992010: 'imports' is on
1
回答数

回答被采纳 30 angular 项目迁移至 esbuild 报错

通过下面的命令准备将 angular 项目迁移至 esbuild ng update @angular/cli --name use-application-builder 运行时报错 Only "@
1
回答数

回答被采纳 30 升级到 angular 19 遇到问题:"Cannot find module 'node_modules\ng-zorro-antd\style\color\tinycolor2'"

一个项目从 angular 17 升级到 angular 19 后,build 时出现下面的错误 const tinycolor = require('./tinycolor2'); ^ Cannot
1
回答数

回答被采纳 30 升级到 angular 19 后遇到 "colorPalette is not defined" 错误

从 angular 17 升级到 angular 19 后,项目中使用了一个从 ng-zorro 复制过来的 bootstrap.less 样式文件,在 build 时下面的代码报错 @primary
1
回答数

回答被采纳 30 升级 angular 时遇到错误「The "timeout" argument must be of type number. 」

运行下面的命令从 angular 17 升级至 angular 18 ng update @angular/core@18 @angular/cli@18 出现下面的错误 An unhandled e
1
回答数

回答被采纳 30 favicon 的 html tag 是否需要加 "shortcut"

是使用 rel="shortcut icon" <link rel="shortcut icon" href="https://assets.cnblogs.com/favicon.ico" type
1
回答数

回答被采纳 30 Microsoft.Extensions.AI 有什么用

2024年10月8日,微软在 .NET 官方博客通过博文Introducing Microsoft.Extensions.AI Preview – Unified AI Building Blocks