Angular-cli: Cannot find name 'FileReplacements'.

Created on 18 Jun 2018  路  4Comments  路  Source: angular/angular-cli

Bug Report or Feature Request (mark with an x)

- [X] bug report -> please search issues before submitting
- [ ] feature request

Area

- [X] devkit
- [ ] schematics

Versions

node --version v8.11.1
npm --version 6.1.0

Repro steps

import { BrowserBuilderSchema } from '@angular-devkit/build-angular';

The log given by the failure

node_modules/@angular-devkit/build-angular/src/browser/schema.d.ts(52,21): error TS2304: Cannot find name 'FileReplacements'.

Desired functionality

Compile w/o error when importing from @angular-devkit/build-angular.

Mention any other details that might be useful

BrowserBuilderSchema.fileReplacements is type FileReplacements[] but that is not a type. There is type FileReplacement though.

devkibuild-angular low broken bufix

Most helpful comment

Same issue is in server node_modules/@angular-devkit/build-angular/src/server/schema.d.ts(75,21): error TS2304: Cannot find name 'FileReplacements'.

All 4 comments

Same issue is in server node_modules/@angular-devkit/build-angular/src/server/schema.d.ts(75,21): error TS2304: Cannot find name 'FileReplacements'.

Hi, it seems the change not publish in latest version 0.8.1, our CI was broken now.

Also having this issue. ALthough I am using versions

  • node --version v8.11.1
  • npm --version 6.1.0

I just commented out the line 52:
_fileReplacements: FileReplacements[];_
And then everything compiled fine.

Although this should only be a temporary fix
Is there a proper fix for this yet?

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._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

purushottamjha picture purushottamjha  路  3Comments

rwillmer picture rwillmer  路  3Comments

IngvarKofoed picture IngvarKofoed  路  3Comments

NCC1701M picture NCC1701M  路  3Comments

rajjejosefsson picture rajjejosefsson  路  3Comments