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

Missing declaration types NormalizedSourceMaps, CurrentFileReplacement, AssetPatternObject #13388

Closed
code2nguyen opened this Issue Jan 9, 2019 · 3 comments

Comments

Projects
None yet
5 participants
@code2nguyen
Copy link

code2nguyen commented Jan 9, 2019

Bug Report or Feature Request (mark with an x)

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

Area

- [X] devkit
- [ ] schematics

Versions

ng --version v7.2.0

Repro steps

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

The log given by the failure

../../node_modules/@angular-devkit/build-angular/src/browser/schema.d.ts:417:14 - error TS2304: Cannot find name 'NormalizedSourceMaps'.

417   sourceMap: NormalizedSourceMaps;
                 ~~~~~~~~~~~~~~~~~~~~

../../node_modules/@angular-devkit/build-angular/src/browser/schema.d.ts:420:17 - error TS2304: Cannot find name 'NormalizedOptimization'.

420   optimization: NormalizedOptimization;
                    ~~~~~~~~~~~~~~~~~~~~~~

../../node_modules/@angular-devkit/build-angular/src/karma/schema.d.ts:61:11 - error TS2304: Cannot find name 'AssetPatternObject'.

61   assets: AssetPatternObject[];
             ~~~~~~~~~~~~~~~~~~

../../node_modules/@angular-devkit/build-angular/src/karma/schema.d.ts:62:21 - error TS2304: Cannot find name 'CurrentFileReplacement'.

62   fileReplacements: CurrentFileReplacement[];
                       ~~~~~~~~~~~~~~~~~~~~~~

../../node_modules/@angular-devkit/build-angular/src/karma/schema.d.ts:63:14 - error TS2304: Cannot find name 'NormalizedSourceMaps'.

63   sourceMap: NormalizedSourceMaps;
                ~~~~~~~~~~~~~~~~~~~~

../../node_modules/@angular-devkit/build-angular/src/server/schema.d.ts:181:21 - error TS2304: Cannot find name 'CurrentFileReplacement'.

181   fileReplacements: CurrentFileReplacement[];
                        ~~~~~~~~~~~~~~~~~~~~~~

../../node_modules/@angular-devkit/build-angular/src/server/schema.d.ts:182:14 - error TS2304: Cannot find name 'NormalizedSourceMaps'.

182   sourceMap: NormalizedSourceMaps;
                 ~~~~~~~~~~~~~~~~~~~~

../../node_modules/@angular-devkit/build-angular/src/server/schema.d.ts:183:17 - error TS2304: Cannot find name 'NormalizedOptimization'.3:17 - error TS2304: Cannot find name 'NormalizedOptimization'.

183   optimization: NormalizedOptimization;
                    ~~~~~~~~~~~~~~~~~~~~~~

Desired functionality

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

Mention any other details that might be useful

@hansl

This comment has been minimized.

Copy link
Collaborator

hansl commented Jan 10, 2019

Not sure why this is marked as a regression. It never worked as we don't guarantee to publish typings for those. The build-angular package is currently experimental.

The good news is we'll start publishing those most likely around the v8 timeframe as we stabilize the Architect API.

Closing this as working as intended.

@hansl hansl closed this Jan 10, 2019

@AlanObject

This comment has been minimized.

Copy link

AlanObject commented Jan 11, 2019

I ran into this as well. To fix it so I could build my angular project I had to downgrade @angular/build-angular to 0.11.4 because anything later than that wouldn't build.

Could someone explain why this ticket was closed because "build-angular is experimental" so we don't care if it works or not? Can you do ng serve without it?

@liujingbreak

This comment has been minimized.

Copy link

liujingbreak commented Jan 11, 2019

My own project which depends on @angular/build-angular just encounters same issue

/Users/liujing/bk/credit-appl/node_modules/@angular-devkit/build-angular/src/browser/schema.d.ts(417,14): error TS2304: Cannot find name 'NormalizedSourceMaps'.
/Users/liujing/bk/credit-appl/node_modules/@angular-devkit/build-angular/src/browser/schema.d.ts(420,17): error TS2304: Cannot find name 'NormalizedOptimization'.
/Users/liujing/bk/credit-appl/node_modules/@angular-devkit/build-angular/src/karma/schema.d.ts(61,11): error TS2304: Cannot find name 'AssetPatternObject'.
/Users/liujing/bk/credit-appl/node_modules/@angular-devkit/build-angular/src/karma/schema.d.ts(63,14): error TS2304: Cannot find name 'NormalizedSourceMaps'.
/Users/liujing/bk/credit-appl/node_modules/@angular-devkit/build-angular/src/server/schema.d.ts(182,14): error TS2304: Cannot find name 'NormalizedSourceMaps'.
/Users/liujing/bk/credit-appl/node_modules/@angular-devkit/build-angular/src/server/schema.d.ts(183,17): error TS2304: Cannot find name 'NormalizedOptimization'.

opulisDynamics pushed a commit to opulisDynamics/angular-cli that referenced this issue Jan 12, 2019

opulisDynamics added a commit to opulisDynamics/angular-cli that referenced this issue Jan 12, 2019

opulisDynamics added a commit to opulisDynamics/angular-cli that referenced this issue Jan 13, 2019

opulisDynamics added a commit to opulisDynamics/angular-cli that referenced this issue Jan 13, 2019

kyliau added a commit that referenced this issue Jan 14, 2019

kyliau added a commit that referenced this issue Jan 14, 2019

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