Skip to content

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

Closed

Description

@fluffywaffles

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.

Activity

  1. filipesilva commented on May 31, 2016

    @filipesilva
    Contributor

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

  2. tapas4java commented on Jun 1, 2016

    @tapas4java
    Contributor

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

  3. fluffywaffles commented on Jun 1, 2016

    @fluffywaffles
    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 notifications@github.com 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
    .

  4. tapas4java commented on Jun 1, 2016

    @tapas4java
    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

  5. filipesilva commented on Jun 2, 2016

    @filipesilva
    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.

  6. angular-automatic-lock-bot commented on Sep 5, 2019

    @angular-automatic-lock-bot

    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.

  7. locked and limited conversation to collaborators on Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions