Skip to content

ng serve, ng create, ... ends with just "Error", no details, no stack. Worked fine, then just stopped. #2689

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

Closed
ev45ive opened this issue Oct 13, 2016 · 5 comments

Comments

@ev45ive
Copy link

ev45ive commented Oct 13, 2016

Please provide us with the following information:

OS?

Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
WIndows 10

Versions.

Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here:
angular-cli: 1.0.0-beta.17
node: 6.5.0
os: win32 x64

Repro steps.

Was this an app that wasn't created using the CLI? What change did you do on your code? etc.
No idea. Just stopped working at some point. Maybe after creating controller and removig it manually and not using ng destroy, but I am not sure that is the case

The log given by the failure.

Normally this include a stack trace and some more information.

Error

sic!

Mention any other details that might be useful.

Can I somehow debug it? See more verbose errors? Stacktrace? how?

Thanks!


Thanks! We'll be in touch soon.

@ev45ive
Copy link
Author

ev45ive commented Oct 13, 2016

OK.
did git checkout HEAD~1
and it worked
went back with git checkout HEAD to see what changed
and now ng serve (and others) works without this "Error" even the code is exactely the same it was when it was making this Error.

Anyway - It would be awsome it all cases of just "Error" was removed and always any details. or at least Stack Trace was given. Thanks.

and thanks for angular-cli - its speeds up things a lot!!! :-)

@CodeJason
Copy link

I had this problem a while ago and it drove me nuts!!
Anyway, I figured out it was the styles and scripts array in the angular-cli.json file. I had the wrong path or missed a comma somewhere.
Could be a different issue for you though. Like you said, the error message is less than helpful.

@rwillmer
Copy link
Contributor

I got this error by using single-quotes rather than double-quotes in the angular-cli.json file.

@filipesilva
Copy link
Contributor

Sorry, the error message for invalid angular-cli.json was bugged, resulting in these messages.

@RoopeHakulinen gracefully fixed it in #2565, and it should be out next release.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants