Skip to content
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

ng serve of a brand new project fails to load... just about everything #971

Closed
fluffywaffles opened this issue May 31, 2016 · 6 comments
Closed

Comments

@fluffywaffles
Copy link

fluffywaffles commented May 31, 2016

Please provide us with the following information:

  1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
    Ubuntu 16.04.
  2. 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.5
node: 5.10.1
os: linux x64
  1. Repro steps. Was this an app that wasn't created using the CLI? What change did you
    do on your code? etc.
$ ng new ng2-hello --style stylus
$ cd ng2-hello
$ ng serve
  1. The log given by the failure. Normally this include a stack trace and some
    more information.
    error messages
  2. Mention any other details that might be useful.

Thanks! We'll be in touch soon.

@filipesilva
Copy link
Contributor

Right you are. Seems that at the moment stylus compilation is not happening, for some reason.

@tapas4java
Copy link
Contributor

@skorlir...You have to install stylus before ng serve

@fluffywaffles
Copy link
Author

Huh. I suppose that makes sense, but it surprises me that the cli doesn't
just install it locally. It's available on npm.

It also surprises me that there was never an error message given during
generation or compilation, and the build succeeded. Perhaps the cli could
do detection to see if the stylus executable is available, and give a
warning and offer to install it locally if not?

I would be glad to look into it and submit a PR, if you'd like to point me
in the right direction.

Jordan

On Wed, Jun 1, 2016, 1:07 AM Tapas Jena [email protected] wrote:

@skorlir https://github.com/skorlir...You have to install stylus before ng
serve


You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
#971 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AA2LgthnN9zd1O5VGnrg7oDQv2RIDogyks5qHSGOgaJpZM4Iq8DV
.

@tapas4java
Copy link
Contributor

Yep,
I would suggest to add the respective library into package.json if user is providing --style flag to new/init command.

e.g. If user provides --style scss then we should add node-sass library to the package.json

@filipesilva
Copy link
Contributor

We recently added conditional packages in package.json when creating a new project, so it's definitely feasible.

I've opened #986 to replace this one as it calls explicitly for adding the new functionality.

@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 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants