将Angular 4 wih system.js迁移到Angular 8无法正常工作 [英] Migrate Angular 4 wih system.js toAngular 8 not working

查看:97
本文介绍了将Angular 4 wih system.js迁移到Angular 8无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将Angular 4与system.js一起使用,但没有angular-cli.json

I am using Angular 4 with system.js and I do not have angular-cli.json

我将其升级到Angular8.我使用下面的链接进行了更改:

I am upgrading it to Angular 8. I did changes using below link:

将Angular 4升级到angular 8后出现的问题

我也阅读了Angular.io,但没有为我工作. 因此,我将其升级为Angular5.在控制台中没有出现问题,但是在运行应用程序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 and 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

这篇关于将Angular 4 wih system.js迁移到Angular 8无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆