Skip to content
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 · 4 comments
Labels
area: devkit/build-angular freq1: low Only reported by a handful of users who observe it rarely severity5: regression type: bug/fix
Milestone

Comments

@code2nguyen
Copy link

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

@alan-agius4 alan-agius4 added freq1: low Only reported by a handful of users who observe it rarely severity5: regression area: devkit/build-angular labels Jan 9, 2019
@ngbot ngbot bot modified the milestone: needsTriage Jan 9, 2019
@ngbot ngbot bot modified the milestones: needsTriage, Backlog Jan 9, 2019
@hansl
Copy link
Contributor

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 as completed Jan 10, 2019
@AlanObject
Copy link

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

gatthias pushed a commit to gatthias/angular-cli that referenced this issue Jan 12, 2019
gatthias added a commit to gatthias/angular-cli that referenced this issue Jan 12, 2019
gatthias added a commit to gatthias/angular-cli that referenced this issue Jan 13, 2019
gatthias added a commit to gatthias/angular-cli that referenced this issue Jan 13, 2019
kyliau pushed a commit that referenced this issue Jan 14, 2019
kyliau pushed a commit that referenced this issue Jan 14, 2019
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: devkit/build-angular freq1: low Only reported by a handful of users who observe it rarely severity5: regression type: bug/fix
Projects
None yet
Development

No branches or pull requests

5 participants