[ERROR] ng has unexpectedly closed (exit code 2147483651).
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Bug
- Klarheit
- Muss geklärt werden
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- angular, node.js, typescript
- Bereich
- cli
Rechercherichtung
Beginne damit, ionic serve --host 0.0.0.0 unter den gemeldeten Windows-, Node.js-, Angular- und Ionic-CLI-Versionen zu reproduzieren, und vergleiche es dann mit ng serve und dem funktionierenden Fall mit Port 8101. Der Bericht nennt keine Repository-Datei und keinen Test; abgeschlossen ist die Aufgabe, wenn die Ursache des Node/V8-Absturzes identifiziert und ein verifizierter Fix oder eine Regressionstestabdeckung hinzugefügt wurde.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Description:
Hi, i`m having a weird problem with ionic + capacitor.
I dont know exactly what happened, but after run the build command and some npx cap sync and npx cap open android i started to face this issue.
By first i get some project files corrupted, and after fix the files, ionic serve --host 0.0.0.0` not worked anymore.
It is really weird, because i dont get the error if i run just ionic serve, or even, ng serve --host 0.0.0.0. The error just happens when i run ionic serve with the host flag and 0.0.0.0 as its value. Also ionic build --prod runs fine.
if i run manually ng serve --host 0.0.0.0 --port 8100, i get the error. But if i change the port to 8101 it works like a charm.
I`ve already tried to remove node_modules and install again, tried to manually remove all ionic dependencies and reinstall them manually, tried to reinstall node and npm, have restarted my PC, but none of this have worked.
Also, tried to check if something was using the 8100 port with netstat -ab, but there`s absolutely nothing using this port.
i know i can just run ng serve command manually and point to the 8101 port, but this is a really weird issue, and i want to, at least, try to understand what caused this bug to prevent more corrupted project files in the future.
Steps to Reproduce:
just run:
ionic serve --host 0.0.0.0
Output:
$ ionic serve --host 0.0.0.0
ng.cmd run app:serve --host=0.0.0.0 --port=8100
[ng] Warning: This is a simple server for use in testing or debugging Angular
applications
[ng] locally. It hasn't been reviewed for security issues.
[ng]
[ng] Binding this server to an open connection can result in compromising your application or
[ng] computer. Using a different host than the one passed to the "--host" flag might result in
[ng] websocket connection issues. You might need to use "--disable-host-check" if that's the
[ng] case.
[ng] - Generating browser application bundles (phase: setup)...
[ng] #
[ng] # Fatal error in , line 0
[ng] # Fatal JavaScript invalid size error 169220804
[ng] #
[ng] #
[ng] #
[ng] #FailureMessage Object: 0000007B493FE510
[ng] 1: 00007FF75C3B9E7F node_api_throw_syntax_error+175967
[ng] 2: 00007FF75C2D036F v8::CTypeInfoBuilder::Build+11999
[ng] 3: 00007FF75D13D182 V8_Fatal+162
[ng] 4: 00007FF75CC7A265 v8::internal::FactoryBasev8::internal::Factory::NewFixedArray+101
[ng] 5: 00007FF75CAFF8E3 v8::internal::FeedbackNexus::ic_state+65795
[ng] 6: 00007FF75CB1E460 v8::Context::GetIsolate+15600
[ng] 7: 00007FF75C96AA40 v8::internal::CompilationCache::IsEnabledScriptAndEval+25952
[ng] 8: 00007FF75CE778B1 v8::internal::SetupIsolateDelegate::SetupHeap+558193[ng] 9: 00007FF6DDB2B95D
[ERROR] ng has unexpectedly closed (exit code 2147483651).
The Ionic CLI will exit. Please check any output above for error
details.
My ionic info:
Ionic:
Ionic CLI : 6.20.3 (C:\Users\kaiqu\AppData\Roaming\npm\node_modules@ionic\cli)
Ionic Framework : @ionic/angular 6.4.1
@angular-devkit/build-angular : 15.0.5
@angular-devkit/schematics : 15.0.5
@angular/cli : 15.0.5
@ionic/angular-toolkit : 6.1.0
Capacitor:
Capacitor CLI : 4.3.0
@capacitor/android : 4.3.0
@capacitor/core : 4.6.1
@capacitor/ios : 4.3.0
Utility:
cordova-res : 0.15.4
native-run : 1.7.1
System:
NodeJS : v18.13.0 (C:\Program Files\nodejs\node.exe)
npm : 8.19.3
OS : Windows 10
- Vorherrschende Sprache
- TypeScript
- Sterne
- 2k
- Forks
- 681
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus ionic-team/ionic-cli
-
triage
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 65/100
ionic-team/ionic-cli#5016 ·
-
triage
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 15/100
ionic-team/ionic-cli#5131 ·
-
triage
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 56/100
ionic-team/ionic-cli#5130 ·
-
triage
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 72/100
ionic-team/ionic-cli#5129 ·
-
triage
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 42/100
ionic-team/ionic-cli#5127 · 2 Kommentare ·
Alle Issues in ionic-team/ionic-cli
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
wardian-app/Wardian#1603 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Sign the pledgeOffen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
input-output-hk/devx-updates#168 ·
Maintainer antworten meist innerhalb von 1 Tag
-
triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
github/docs#46222 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
agent-ready area: config area: skills type: chore upstream: brain-kit
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 95/100
-
dev experience frontend good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
cuttle-cards/cuttle#1403 ·
Maintainer antworten meist innerhalb von 1 Tag