简体   繁体   English

Angular 迁移 12 到 14 运行 nx 服务<app_name>失败的</app_name>

[英]Angular migration 12 to 14 running nx serve <app_name> failed

After migration angular version from 12 to 14 according this guide , I'm can't run my app.根据本指南将 angular 版本从 12 迁移到 14 后,我无法运行我的应用程序。

after successful build, I'm running this command: nx serve <my app name> and nothing happend.成功构建后,我正在运行此命令: nx serve <my app name>并且没有任何反应。

在此处输入图像描述

what am i missing?我错过了什么?

choose nx version according to angular version that you want to upgrade in this guide: https://nx.dev/angular-nx-version-matrix根据本指南中要升级的 angular 版本选择 nx 版本: https://nx.dev/angular-nx-version-matrix

run command:运行命令:
nx migrate 14.4.3

(14.4.3 is nx version that upgrade to angular to v14) (14.4.3是nx版本,angular升级到v14)

than run: nx migrate --run-migrations比运行: nx migrate --run-migrations

and than: nx serve <my app name>然后: nx serve <my app name>

  • if you have this err: "NX spawn ENAMETOOLONG" or "NX Cannot read properties of undefined (reading 'endsWith')"如果你有这个错误:“NX spawn ENAMETOOLONG”或“NX 无法读取未定义的属性(读取'endsWith')”

step 1: add .angular to.gitignore第 1 步:将.angular添加到 .gitignore

step 2: commit the changes第 2 步:提交更改

that work for me.这对我有用。

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

相关问题 如何通过快递的内部路由为 angular nx 应用程序提供服务? - How to serve angular nx app with internal routing from express? Angular 从 v12 迁移到 v14 - Angular migration from v12 to v14 NX 工作区,如何使用 cli 更改 Angular 应用程序名称? - NX workspace, how to change an Angular app name with the the cli? 我无法使用“ ng new app_name”创建角度项目。 收到错误-4058 - I cannot create angular project with “ng new app_name”. Get error -4058 迁移失败:发现不兼容的对等依赖项 - 将 Angular 升级到版本 12 - Migration failed: Incompatible peer dependencies found - Upgrading Angular to Version 12 JS堆出memory自迁移angular 11到12,13或14 - JS heap out of memory since migration angular 11 to 12,13 or 14 Angular 6 到 12 迁移问题 - Angular 6 to 12 Migration Issues 使用“nx migrate”在 nx 工作区中从 Angular 13 升级到 14 后生成 Angular 组件时出错 - Error while generating Angular component after upgrading from Angular 13 to 14 in nx workspace using `nx migrate` AWS Ec2 Ubuntu 实例运行 Angular 14 App - AWS Ec2 Ubuntu Instance Running Angular 14 App Angular 14 应用程序在执行“ng build”时在 iPad 上显示白屏,但在执行“ng serve”时可以正常工作 - Angular 14 app shows white screen on iPad when doing 'ng build, but works when doing 'ng serve'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM