Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49251

Ionic serve suddenly stopped working, attempts to update/downgrade plugins and CLI has no effect so far

$
0
0

@reignmina wrote:

Hey, everyone! I’m almost 3 months in with Ionic and I’ve ran into a problem that seemingly has no solution (I’m sure it does, but it’s been driving me insane for the past days looking for solutions in different forums!) This is my first post so feel free to point out some errors about my post. Thanks!

I’ve built a couple of apps before and it all worked flawlessly. I ran into this one out of nowhere when trying to test one of my apps. It wasn’t newly opened, I was in the middle of the usual change-and-serve routine.

Whenever I run ionic serve, the terminal displays the usual logs:

Starting app-scripts server: --address 0.0.0.0
–port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser -
Ctrl+C to cancel
[10:52:15] watch started …
[10:52:15] build dev started …

When I run ionic serve --verbose, it shows this.

[DEBUG] CLI flags: { interactive: true, confirm: false }
[DEBUG] { cwd: ‘C:\Users\reign.mina\Desktop\IonicSearchDemo\ionic-search’, local: true, binPath:
‘C:\Users\reign.mina\AppData\Roaming\npm\node_modules\ionic\bin\ionic’, libPath:
‘C:\Users\reign.mina\Desktop\IonicSearchDemo\ionic-search\node_modules\ionic\dist\index.js’ }
[DEBUG] Daemon found (pid: 4988)
Starting app-scripts server: --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser -
Ctrl+C to cancel
[10:05:19] watch started …
[10:05:19] build dev started …

The Error
When I try to load localhost:8100 in any browser, it results to nothing. Literally nothing, not even errors or anything. It just loads for a while and stops.

Different error results in each browser
Internet Explorer: localhost has stopped due to a long running script.
Chrome: (Nothing. It just keeps loading and stops after several minutes to show “Aw, Snap!” page.)
Firefox: (Nothing again, stuck on transferring data from localhost)

Out of all the browsers I’ve tried it on, only Explorer actually stops loading after a short while.

I’ve tried solutions that other similar forum posts presented, namely these ones:

At one point, the terminal asked me if I wanted to update the local Ionic CLI
(3.19.1 => 3.20.0)

I tried both Y/N options. After updating my local CLI using this command
npm i -D -E ionic@latest
The problem persists. After downgrading once more, it still persists.
npm i --save -E ionic@3.19.1

If I run ionic cordova prepare (as suggested in another post), it shows this

Running app-scripts build: --target cordova
[10:51:13] build dev started …
[10:51:13] clean started …
[10:51:13] clean finished in 40 ms
[10:51:13] copy started …
[10:51:13] deeplinks started …
[10:51:13] deeplinks finished in 64 ms
[10:51:13] transpile started …
[10:51:21] transpile finished in 8.02 s
[10:51:21] preprocess started …
[10:51:21] preprocess finished in less than 1 ms
[10:51:21] webpack started …
[10:51:21] copy finished in 8.58 s
[10:51:29] webpack finished in 7.79 s
[10:51:29] sass started …
Without from option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to undefined to prevent this warning.
[10:51:30] sass finished in 1.57 s
[10:51:30] postprocess started …
[10:51:31] postprocess finished in 28 ms
[10:51:31] lint started …
[10:51:31] build dev finished in 18.03 s
cordova prepare
Android Studio project detected

[10:51:39] lint finished in 8.52 s`

Even when generating a new starter Ionic template project (blank, sidemenu, tutorial, etc.) the same problem persists even with previously working projects that I have already built an apk on. This makes me feel like it’s a problem with my PC or file directories, I just don’t know what to look into without ruining it more.

ionic info

cli packages: (C:\Users\reign.mina\Desktop\IonicSearchDemo\ionic-search\node_modules)

@ionic/cli-utils  : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : 8.0.0

local packages:

@ionic/app-scripts : 3.1.8
Cordova Platforms  : android 7.0.0
Ionic Framework    : ionic-angular 3.9.2

System:

Node : v9.4.0
npm  : 5.7.1
OS   : Windows 10

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : pro

I’m really lost with this one. I’ve found solutions to all my Ionic problems by going through posts and this is the first time I’ve been truly lost. All help will be appreciated. Thanks!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>