Ionic Framework3缺少main.css [英] Ionic Framework3 missing main.css

查看:297
本文介绍了Ionic Framework3缺少main.css的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用
创建起始模板 ionic start projname
然后ofc cd ./projname ionic serve
我有标签模板,但没有main.css。
我做错了什么,如何解决?

Im creating starter template with ionic start projname then ofc cd ./projname and ionic serve And I got tabs template, but without main.css. What I'm doing wrong and how can I resolve this?

UPD:
离子不想编译样式

UPD: ionic dont want to compile styles

离子信息

我的package.json可能有问题吗?

Maybe something wrong with my package.json?

{
  "name": "recepies",
  "version": "0.0.1",
  "author": "Ionic Framework",
  "homepage": "http://ionicframework.com/",
  "private": true,
  "scripts": {
    "clean": "ionic-app-scripts clean",
    "build": "ionic-app-scripts build",
    "lint": "ionic-app-scripts lint",
    "ionic:build": "ionic-app-scripts build",
    "ionic:serve": "ionic-app-scripts serve"
  },
  "dependencies": {
    "@angular/common": "4.1.3",
    "@angular/compiler": "4.1.3",
    "@angular/compiler-cli": "4.1.3",
    "@angular/core": "4.1.3",
    "@angular/forms": "4.1.3",
    "@angular/http": "4.1.3",
    "@angular/platform-browser": "4.1.3",
    "@angular/platform-browser-dynamic": "4.1.3",
    "@ionic-native/core": "3.12.1",
    "@ionic-native/splash-screen": "3.12.1",
    "@ionic-native/status-bar": "3.12.1",
    "@ionic/storage": "2.0.1",
    "ionic-angular": "3.5.3",
    "ionicons": "3.0.0",
    "rxjs": "5.4.0",
    "sw-toolbox": "3.6.0",
    "zone.js": "0.8.12"
  },
  "devDependencies": {
    "@ionic/app-scripts": "2.0.2",
    "@ionic/cli-plugin-ionic-angular": "1.3.2",
    "typescript": "2.3.4"
  },
  "description": "An Ionic project"
}


推荐答案

这是一个bug ,吃了我的一天= /
现在解决了。

This was a bug, that ate my day =/ Now solved.

升级回最新版本的app-scripts

"Upgrade back to the latest version of app-scripts"

https://github.com/ionic-team/ionic/ issue / 12442

这篇关于Ionic Framework3缺少main.css的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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