Skip to content

HMR. Serve error "Data path "" should NOT have additional properties(fileReplacements)" #11540

@Dok11

Description

@Dok11

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting

Area

- [x] schematics

Versions

node v8.9.4
npm 5.6.0

Repro steps

In making step from https://github.com/angular/angular-cli/wiki/stories-configure-hmr

image

I set my angular.json like this:

image

The log given by the failure

> ng serve --port 4260 --proxy-config proxy.conf.json --aot --source-map --progress false --configuration hmr

Schema validation failed with the following errors:
  Data path "" should NOT have additional properties(fileReplacements).
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! main@0.0.0 start-hmr: `ng serve --port 4260 --proxy-config proxy.conf.json --aot --source-map --progress false --configuration hmr`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the main@0.0.0 start-hmr script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

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