将带有 system.js 的 Angular 4 迁移到 Angular 8 不起作用 [英] Migrate Angular 4 wih system.js toAngular 8 not working
问题描述
我将 Angular 4 与 system.js 一起使用,但我没有 angular-cli.json
I am using Angular 4 with system.js and I do not have angular-cli.json
我正在将其升级到 Angular 8.我使用以下链接进行了更改:
I am upgrading it to Angular 8. I did changes using below link:
将 Angular 4 升级到 Angular 8 后的问题
我也读过 Angular.io,但不适合我.所以我将它升级到 Angular 5.我在控制台中没有遇到问题,但是当我运行应用程序时,Ui 没有显示.
I have also read Angular.io but not working for me. So I upgared it to Angular 5. I did not get issue in console but when I run application Ui is not displaying.
升级前是否需要先将 system.js 转换为 CLI?
Do I need to convert system.js to CLI first before upgrading?
推荐答案
试试这个:-
如果您创建一个新项目并将模块移动到新项目中会更好.然后根据您当前应用程序的复杂性配置您的 package.json、angular.json 和 tsconfig.json
并使用 npm 命令 npm install
Try this:-
It would be better if you create a new project and move modules into the new project. Then based on complexity of your current application configure your package.json, angular.json and tsconfig.json
and install packages using npm command npm install
将项目从 SystemJS 移至 Angular CLI/Webpack
这篇关于将带有 system.js 的 Angular 4 迁移到 Angular 8 不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!