-
Notifications
You must be signed in to change notification settings - Fork 659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: app-scripts serve unexpectedly failed #2247
Comments
I had the same issue, please i need a solution.
global packages:
local packages:
System:
Error: app-scripts serve unexpectedly failed. [DEBUG] !!! ERROR ENCOUNTERED !!! |
@Aaron-Sterling @tnovau Does this happen with app-scripts 1.3.6? |
1.3.7 is the version i have. |
Can you try with 1.3.6?
|
I run npm instal --save-dev @ionic/[email protected],and then when i run ionic serve, I get this message after [15:29:50] dev server running: http://localhost:8100/: [DEBUG] !!! ERROR ENCOUNTERED !!! |
@dwieeb I created a new project (blank), put in my source code folder from my main project, and started adding libraries until I encountered the error. I hit the error at the same point with both 1.3.6 and 1.3.7. Libraries in order of addition were: npm install @angular/animations After installing immutable, I got the error. Up until that point, I had run ionic serve after every install, and it was fine, in both 1.3.6 and 1.3.7. |
I made the same action than @Aaron-Sterling and on my side i had an error after this installation of angular/animation |
I had this issue when i executed command: ionic cordova run android --livereload -c -s. If you are doing the same, just try to run ionic cordova run platform. I hope this will solve your issue, |
I had the same error message
when i executed so i tried to run |
@Aaron-Sterling @tnovau @JulioCesarCeron I still haven't been able to reproduce this, but I am launching the next version of the CLI with the debugging information you can see in the commit above ^ Hopefully this will shed some light on this issue. |
I have no longer this error in sudo:
|
Here is a way to reproduce the bug: steps to reproduce:
|
@realfreebird Thanks for being a champ and making that repo 👍 Unfortunately I'm still unable to reproduce. Are you on Windows as well? Does an error occur if you try |
@dwieeb I get this error with Here is my configuration:
global packages:
local packages:
System:
|
@realfreebird Okay. Would you mind trying this with the alpha CLI? |
Worked around this problem by adding an empty file to src/service-worker.js. it seems that (the below code is started from line 53 of @Ionic\app-scripts\dist\serve.js) in the function serve is not return the object config when a non fatal error occurs, such as not find a file in the watch list. `
` I hacked the server.js to write to the console (sorry still learning the in and outs of this platform, possible a better way to do this.) Starting app-scripts server: --port 8100 --livereload-port 35729 --address 0.0.0.0 - Ctrl+C to cancel [19:26:30] watch started ... ..... [19:26:48] lint finished in 605 ms [19:26:51] dev server running: http://localhost:8100/ For my ionic info
local packages:
System:
Hope this helps. |
@paulonbastos I think that's the exact problem. We'll see if it's still an issue when the next version of app-scripts is released. Thanks for diving deep, very helpful. |
Possible solution: npm install --save sw-toolbox The plugin @ ionic/cli-plugin-ionic-angular @ 1.0.0-rc.2 requires @ ionic/app-scripts I've got the same problem for "ionic serve" - after installing the missing package it works as expected. |
@thornch @dwieeb neither did
Tried After seeing some --> |
Cross-posting an issue I put on app-scripts yesterday in case you guys are a different team.
ionic-app-scripts issue #975
Problem arose on both existing and new projects. I'm using nvm-for-windows, in case that has any effect. package,json, tsconfig.json and ionic info are at the crosspost. Ionic serve would bring up the homepage of the app, then crash, with this error:
[DEBUG] !!! ERROR ENCOUNTERED !!!
Error: app-scripts serve unexpectedly failed.
[DEBUG] Error: app-scripts serve unexpectedly failed.
at Object. (C:\Users\Aaron\IonicDevelop\ActionSearch\node_modules@ionic\cli-plugin-ionic-angular\dist\serve.js:50:19)
at Generator.next ()
at fulfilled (C:\Users\Aaron\IonicDevelop\ActionSearch\node_modules@ionic\cli-plugin-ionic-angular\dist\serve.js:4:58)
Thanks very much.
The text was updated successfully, but these errors were encountered: