离子发球/离子流不反映变化 [英] Ionic serve / ionic run not reflecting changes

查看:37
本文介绍了离子发球/离子流不反映变化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

离子发球和离子跑都没有反映我的最新变化.离子发球展示了几个小时前的数据,而离子流转则展示了大约一个小时后的数据.从那时起,我放弃了所有更改,并从父级创建了一个新分支-但是它仍在几个小时前在第一个分支上显示相同的版本.简而言之,有代码显示该分支或任何分支中没有任何文件.而且没有未提交的更改.

Both ionic serve and ionic run are not reflecting any of my latest changes. ionic serve is showing them from a few hours ago, and ionic run is showing them from about an hour later. Since then, I've discarded all my changes, and created a new branch from the parent--yet it's still showing those same versions from a few hours ago on the first branch. In short, there's code showing up that I don't have in any files in this, or any, branch. And no uncommitted changes.

Your system information:

Cordova CLI: 6.5.0
Ionic CLI Version: 2.2.2
Ionic App Lib Version: 2.2.1
ios-deploy version: 1.9.0
ios-sim version: 5.0.8
OS: macOS Sierra
Node Version: v6.10.1
Xcode version: Xcode 8.3.1 Build version 8E1000a

我尝试了包括 ionic state restore ionic state reset 以及手动删除和添加平台的操作.

I've tried things including ionic state restore and ionic state reset as well as removing and adding platforms back manually.

此外,这是当前在我的控制台中显示的内容:

Also, this is what shows up in my console currently:

Static file server running @ http://localhost:8000/index.html
CTRL + C to shut down

200 /service-worker.js

加载页面时,它先前显示了html,css等请求的列表.目前,我可以通过在chrome://serviceworker-internals/和chrome://inspect/#service-workers

Whereas it previously displayed a list of html, css, etc. requests when the page loaded. Currently, I can make it work as expected by unregistering and removing all ServiceWorkers at chrome://serviceworker-internals/ and chrome://inspect/#service-workers

推荐答案

在检出node/npm安装后,唯一对我有用的是:

The only thing that works for me, after check out node/npm installs, was:

这篇关于离子发球/离子流不反映变化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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