Skip to content

Incremental build - ngtypecheck - error TS1110: Type expected. #42667

@claytongreen

Description

@claytongreen

🐞 Bug report

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • extract-i18n
  • run
  • config
  • help
  • version
  • doc

Is this a regression?

Yes. Worked previously v12.0.5

Description

Initial build using ng s succeeds, but on incremental build I get error TS1110: Type expected. when using angular-imask directive on an input element.
https://github.com/uNmAnNeR/imaskjs/tree/master/packages/angular-imask

🔬 Minimal Reproduction

https://github.com/claytongreen/ngtypecheck-error

Build with basic ng s
Comment out <p>Testing in app.component.html to cause rebuild

🔥 Exception or Error

Error: src/app/app.component.ngtypecheck.ts:5:36 - error TS1110: Type expected.

5 const _ctor1: <Opts extends import().default.AnyMaskedOptions = any>(init: Pick<i1.IMaskDirective<Opts>, "imaskElement" | "imask" | "unmask">) => i1.IMaskDirective<Opts> = null!;
                                     ~

🌍 Your Environment


     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI: 12.1.0
Node: 14.17.0
Package Manager: npm 7.9.0
OS: win32 x64

Angular: 12.1.0
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1201.0
@angular-devkit/build-angular   12.1.0
@angular-devkit/core            12.1.0
@angular-devkit/schematics      12.1.0
@schematics/angular             12.1.0
rxjs                            6.6.7
typescript                      4.3.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2The issue is important to a large percentage of users, with a workaroundarea: compilerIssues related to `ngc`, Angular's template compilercompiler: template type-checkingstate: has PR

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions