Skip to content

Fresh --style=stylus install does not work / runtime error #2191

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
mwawrusch opened this issue Sep 17, 2016 · 4 comments · Fixed by #4540
Closed

Fresh --style=stylus install does not work / runtime error #2191

mwawrusch opened this issue Sep 17, 2016 · 4 comments · Fixed by #4540
Assignees
Labels
needs: investigation Requires some digging to determine if action is needed

Comments

@mwawrusch
Copy link

Please provide us with the following information:

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

os: darwin x64

  1. 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.14
node: 6.1.0

  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 notworkingapp --style=stylus

  1. The log given by the failure. Normally this include a stack trace and some
    more information.

It says that style.css needs to be an array of strings or something. Just run the install and open the app. Adding a style to styles.styl results in another error.

  1. Mention any other details that might be useful.
@filipesilva filipesilva added the needs: investigation Requires some digging to determine if action is needed label Sep 22, 2016
@filipesilva filipesilva self-assigned this Sep 22, 2016
@bryanforbes
Copy link

One of the problems is that the application is generated with a app.component.stylus file and the webpack configuration is looking for .styl files. Renaming app.component.stylus to app.component.styl and changing the string in app.component.ts fixes the issue.

@bryanforbes
Copy link

After re-reading the README, I believe this is a documentation error. In the CSS Preprocessor integration, it lists the three preprocessors supported by name (sass/scss, less, and stylus) and then gives an example of sass. This example works great if you substitute in the preprocessor names in the list above except stylus. The extension that angular-cli's expects for stylus files is styl. There are two ways this could be solved: either update the README to document the valid values for the --style argument or when the user passes --style=stylus, set styleExt in the new project to styl. These two options aren't mutually exclusive, either.

@shahen94
Copy link

+1 Same issue on me

freskoulix added a commit to freskoulix/MovieViewer that referenced this issue Jan 28, 2018
@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
needs: investigation Requires some digging to determine if action is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants