Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Bug with Angular-Cli 6 : "Unknown option: '--extractCss'" #1646

@atp-tha

Description

@atp-tha

I create a project from fresh angular-cli template and upgrade it to Angular 6 following instructions from https://update.angular.io/. and run the project using Visual Studio.

An unhandled exception occurred while processing the request.
AggregateException: One or more errors occurred. (One or more errors occurred. (The NPM script 'start' exited without indicating that the Angular CLI was listening for requests. The error output was: Unknown option: '--extractCss'

))
System.Threading.Tasks.Task.GetResultCore(bool waitCompletionNotification)

InvalidOperationException: The NPM script 'start' exited without indicating that the Angular CLI was listening for requests. The error output was: Unknown option: '--extractCss'

Microsoft.AspNetCore.SpaServices.AngularCli.AngularCliMiddleware+d__3.MoveNext()

AggregateException: One or more errors occurred. (One or more errors occurred. (The NPM script 'start' exited without indicating that the Angular CLI was listening for requests. The error output was: Unknown option: '--extractCss'
))

But ng serve worked as expected.

The --extractCss option is unknown because it was removed and now use angular.json instead according to angular/angular-cli#10666.

From log above I believe C# code call angular-cli with --extractCss and listened for correct respond but it ended up error because angular-cli do not support --extractCss anymore.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions