Skip to content

ng serve does not work with --base-href #6289

Description

@dave11mj

Bug Report or Feature Request (mark with an x)

  • bug report -> please search issues before submitting
  • feature request

Versions.

@angular/cli: 1.1.0-beta.0
node: 6.9.5
os: darwin x64
@angular/animations: 4.1.2
@angular/common: 4.1.2
@angular/compiler: 4.1.2
@angular/core: 4.1.2
@angular/forms: 4.1.2
@angular/http: 4.1.2
@angular/language-service: 4.1.2
@angular/platform-browser: 4.1.2
@angular/platform-browser-dynamic: 4.1.2
@angular/router: 4.1.2
@angular/cli: 1.1.0-beta.0
@angular/compiler-cli: 4.1.2

Repro steps.

  1. run ng new serve-with-base-href && cd serve-with-base-href/
  2. run ng serve --base-href '/test/'
  3. Open browser developer tools at http://localhost:4200/test/

The log given by the failure.

image

Desired functionality.

To be able to run ng serve under a different --base-href

Mention any other details that might be useful.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenteffort1: easy (hours)type: bug/fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions