简体   繁体   English

升级到 Angular v13 后,每次更改都会修改附加缓存文件

[英]After upgrade to Angular v13, Additional cache files modified on each change

I have recently upgraded a v12 project to v13, and every time I make a change to a file I am now presented with additional files every time I make a change to anything.我最近将一个 v12 项目升级到 v13,每次我对文件进行更改时,我现在每次对任何内容进行更改时都会看到额外的文件。

Does anyone know why this is happening?有谁知道为什么会这样? These are cache files.这些是缓存文件。

In the example below, I made a simple change to a CSS file and am presented with the following modifications to be checked in to source control.在下面的示例中,我对 CSS 文件进行了简单更改,并显示了以下要签入源代码管理的修改。

额外文件

I solved this by by adding /.angular/cache to.gitignore, but this is only part of it.我通过将/.angular/cache添加到.gitignore 解决了这个问题,但这只是其中的一部分。 The files were still showing up as tracked.文件仍显示为已跟踪。

I had to untrack these files, and I did this top-to-bottom with:我不得不取消跟踪这些文件,我从上到下做了这个:

git rm -r --cached .
git add .

This seems to have resolved it.这似乎已经解决了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 找不到模块“@angular/cdk/dialog”- Angular 将 v13 升级到 v14 问题 - Cannot find module '@angular/cdk/dialog' - Angular upgrade v13 to v14 issue 升级 angular v12 到 v13 时出现找不到模块错误 - Getting Module not found error when upgrade angular v12 to v13 将 Angular v12 升级到 v13 后未捕获 TypeError - Uncaught TypeError after upgrading Angular v12 to v13 Angular 更新到最新 v13 后无法设置属性 ɵfac - Cannot set property ɵfac after Angular update to latest v13 Angular CLI v13 - 无法运行“ng”命令 - Angular CLI v13 - Can not run "ng" commands Angular 使用@angular-builders/custom-webpack 将 v13 迁移到 v14 - Angular migration v13 to v14 using @angular-builders/custom-webpack 我应该如何在 Angular v13 中提取 @angular/material css 文件? - How should I extract @angular/material css file in Angular v13? 如何将从 ASP.NET API 检索到的数据显示到 angular V13 中 - How to display data retrieved from ASP.NET API into angular V13 如何获取在 Angular v13 中动态加载的组件的模块? - How do you get the module of a component that's been dynamically loaded in Angular v13? go 关于替换 v13 的 angular.json 中的“deployUrl”的最佳方法是什么? - What is best way to go about replacing 'deployUrl' in angular.json for v13?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM