在Ionic 2 Project中的哪里可以找到systemjs.config? [英] Where can I find systemjs.config in Ionic 2 Project?

查看:65
本文介绍了在Ionic 2 Project中的哪里可以找到systemjs.config?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用命令创建一个纯Ionic 2项目.

I create an pure Ionic 2 project with the command.

ionic start myIonic --v2

纯项目效果很好,但是当我将项目结构与angularJS 2进行比较时,我发现"systemjs.config.js"丢失了.

The pure project work great, but when I compared the project structure with angularJS 2, I found the "systemjs.config.js" is missing.

我的问题是"systemjs.config.js"文件是否可以替换?

My question is could "systemjs.config.js" file be replaceable?

如果答案是肯定的,那么基于Ionic2的项目中的替代文件是什么?

If the answer is positive, what is the alternative file in Ionic2 based project ?

推荐答案

angular-cli和ionic将构建系统从SystemJS迁移到Webpack.

The angular-cli and ionic moved the build system from SystemJS to Webpack.

角度

npm uninstall -g angular-cli
npm cache clean
npm install -g angular-cli@latest

完整的angular-cli迁移文档:

Full angular-cli migrate docs: https://github.com/angular/angular-cli/wiki/Upgrading-from-Beta.10-to-Beta.14

这篇关于在Ionic 2 Project中的哪里可以找到systemjs.config?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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