angular/ngcc-validation

ng-pick-datetime

mgechev opened this issue · 6 comments

ERROR in @ViewChild predicate cannot be interpreted

No longer an ngcc failure.

With latest version rc.4 you get postinstall compilation errors:

Error: Error on worker #6: Error: Failed to compile entry-point ng-pick-datetime due to compilation errors:
node_modules/@angular/common/common.d.ts(115,22): error TS-996002: Appears in the NgModule.imports of OwlDialogModule, but could not be resolved to an NgModule class
node_modules/@angular/cdk/a11y/a11y-module.d.ts(9,22): error TS-996002: Appears in the NgModule.imports of OwlDialogModule, but could not be resolved to an NgModule class
node_modules/@angular/cdk/overlay/overlay-module.d.ts(9,22): error TS-996002: Appears in the NgModule.imports of OwlDialogModule, but could not be resolved to an NgModule class
node_modules/@angular/cdk/portal/portal-directives.d.ts(84,22): error TS-996002: Appears in the NgModule.imports of OwlDialogModule, but could not be resolved to an NgModule class
node_modules/@angular/common/common.d.ts(115,22): error TS-996002: Appears in the NgModule.imports of OwlDateTimeModule, but could not be resolved to an NgModule class
node_modules/@angular/cdk/overlay/overlay-module.d.ts(9,22): error TS-996002: Appears in the NgModule.imports of OwlDateTimeModule, but could not be resolved to an NgModule class
node_modules/ng-pick-datetime/dialog/dialog.module.js(14,5): error TS-996002: Appears in the NgModule.imports of OwlDateTimeModule, but itself has errors
node_modules/@angular/cdk/a11y/a11y-module.d.ts(9,22): error TS-996002: Appears in the NgModule.imports of OwlDateTimeModule, but could not be resolved to an NgModule class
node_modules/@angular/cdk/platform/platform-module.d.ts(8,22): error TS-996002: Appears in the NgModule.imports of NativeDateTimeModule, but could not be resolved to an NgModule class
node_modules/ng-pick-datetime/date-time/adapter/native-date-time.module.js(13,5): error TS-996002: Appears in the NgModule.imports of OwlNativeDateTimeModule, but itself has errors

    at ClusterWorker.compile (/home/spitfjre/Workspace/mysvg/frontend/node_modules/@angular/compiler-cli/ngcc/src/main.js:170:27)
    at Worker.<anonymous> (/home/spitfjre/Workspace/mysvg/frontend/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/worker.js:41:42)
    at Worker.emit (events.js:210:5)
    at process.<anonymous> (internal/cluster/worker.js:30:12)
    at process.emit (events.js:210:5)
    at emit (internal/child_process.js:876:12)
    at processTicksAndRejections (internal/process/task_queues.js:81:21)
    at ClusterMaster.onWorkerMessage (/home/spitfjre/Workspace/mysvg/frontend/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/master.js:158:27)
    at /home/spitfjre/Workspace/mysvg/frontend/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/master.js:46:95
    at ClusterMaster.<anonymous> (/home/spitfjre/Workspace/mysvg/frontend/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/master.js:238:57)
    at step (/home/spitfjre/Workspace/mysvg/frontend/node_modules/tslib/tslib.js:136:27)
    at Object.next (/home/spitfjre/Workspace/mysvg/frontend/node_modules/tslib/tslib.js:117:57)
    at /home/spitfjre/Workspace/mysvg/frontend/node_modules/tslib/tslib.js:110:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/home/spitfjre/Workspace/mysvg/frontend/node_modules/tslib/tslib.js:106:16)
    at EventEmitter.<anonymous> (/home/spit

OOC, what does the exact postinstall script look like?
Also, are you saying this doesn't happen with rc.3 (or just you haven't tried)?

"postinstall": "ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points"

There was no problem in rc.3.

After further investigation this does happen with 1 more dependency that in know of (@swimlane/ngx-charts).

Compiling @swimlane/ngx-charts : module as esm5
Error: Error on worker #5: Error: Failed to compile entry-point @swimlane/ngx-charts due to compilation errors:
node_modules/@angular/common/common.d.ts(115,22): error TS-996002: Appears in the NgModule.imports of TooltipModule, but could not be resolved to an NgModule class
node_modules/@angular/common/common.d.ts(115,22): error TS-996002: Appears in the NgModule.imports of AxesModule, but could not be resolved to an NgModule class
node_modules/@angular/common/common.d.ts(115,22): error TS-996002: Appears in the NgModule.imports of ChartCommonModule, but could not be resolved to an NgModule class
node_modules/@swimlane/ngx-charts/release/esm.js(2813,5): error TS-996002: Appears in the NgModule.imports of ChartCommonModule, but itself has errors
node_modules/@swimlane/ngx-charts/release/esm.js(1062,5): error TS-996002: Appears in the NgModule.imports of ChartCommonModule, but itself has errors
node_modules/@angular/common/common.d.ts(115,22): error TS-996003: Appears in the NgModule.exports of ChartCommonModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class
node_modules/@swimlane/ngx-charts/release/esm.js(2813,5): error TS-996003: Appears in the NgModule.exports of ChartCommonModule, but itself has errors
node_modules/@swimlane/ngx-charts/release/esm.js(1062,5): error TS-996003: Appears in the NgModule.exports of ChartCommonModule, but itself has errors
node_modules/@swimlane/ngx-charts/release/esm.js(4263,5): error TS-996002: Appears in the NgModule.imports of AreaChartModule, but itself has errors
node_modules/@swimlane/ngx-charts/release/esm.js(4263,5): error TS-996002: Appears in the NgModule.imports of BarChartModule, but itself has errors
node_modules/@swimlane/ngx-charts/release/esm.js(4263,5): error TS-996002: Appears in the NgModule.imports of BubbleChartModule, but itself has errors
node_modules/@swimlane/ngx-charts/release/esm.js(4263,5): error TS-996002: Appears in the NgModule.imports of ForceDirectedGraphModule, but itself has errors
node_modules/@swimlane/ngx-charts/release/esm.js(4263,5): error TS-996002: Appears in the NgModule.imports of HeatMapModule, but itself has errors
node_modules/@swimlane/ngx-charts/release/esm.js(4263,5): error TS-996002: Appears in the NgModule.imports of LineChartModule, but itself has errors
node_modules/@swimlane/ngx-charts/release/esm.js(4263,5): error TS-996002: Appears in the NgModule.imports of PieChartModule, but itself has errors
node_modules/@swimlane/ngx-charts/release/esm.js(4263,5): error TS-996002: Appears in the NgModule.imports of PolarChartModule, but itself has errors
node_modules/@swimlane/ngx-charts/release/esm.js(13508,5): error TS-996002: Appears in the NgModule.imports of PolarChartModule, but itself has errors
node_modules/@swimlane/ngx-charts/release/esm.js(11694,5): error TS-996002: Appears in the NgModule.imports of PolarChartModule, but itself has errors
node_modules/@swimlane/ngx-charts/release/esm.js(4263,5): error TS-996002: Appears in the NgModule.imports of NumberCardModule, but itself has errors
node_modules/@swimlane/ngx-charts/release/esm.js(4263,5): error TS-996002: Appears in the NgModule.imports of TreeMapModule, but itself has errors
node_modules/@swimlane/ngx-charts/release/esm.js(4263,5): error TS-996002: Appears in the NgModule.imports of GaugeModule, but itself has errors
node_modules/@swimlane/ngx-charts/release/esm.js(13508,5): error TS-996002: Appears in the NgModule.imports of GaugeModule, but itself has errors
node_modules/@swimlane/ngx-charts/release/esm.js(9530,5): error TS-996002: Appears in the NgModule.imports of GaugeModule, but itself has errors
node_modules/@swimlane/ngx-charts/release/esm.js(4263,5): error TS-996003: Appears in the NgModule.exports of NgxChartsModule, but itself has errors
node_modules/@swimlane/ngx-charts/release/esm.js(5797,5): error TS-996003: Appears in the NgModule.exports of NgxChartsModule, but itself has errors
node_modules/@swimlane/ngx-charts/release/esm.js(9530,5): error TS-996003: Appears in the NgModule.exports of NgxChartsModule, but itself has errors
node_modules/@swimlane/ngx-charts/release/esm.js(10176,5): error TS-996003: Appears in the NgModule.exports of NgxChartsModule, but itself has errors
node_modules/@swimlane/ngx-charts/release/esm.js(10389,5): error TS-996003: Appears in the NgModule.exports of NgxChartsModule, but itself has errors
node_modules/@swimlane/ngx-charts/release/esm.js(10977,5): error TS-996003: Appears in the NgModule.exports of NgxChartsModule, but itself has errors
node_modules/@swimlane/ngx-charts/release/esm.js(11694,5): error TS-996003: Appears in the NgModule.exports of NgxChartsModule, but itself has errors
node_modules/@swimlane/ngx-charts/release/esm.js(13537,5): error TS-996003: Appears in the NgModule.exports of NgxChartsModule, but itself has errors
node_modules/@swimlane/ngx-charts/release/esm.js(13951,5): error TS-996003: Appears in the NgModule.exports of NgxChartsModule, but itself has errors
node_modules/@swimlane/ngx-charts/release/esm.js(13508,5): error TS-996003: Appears in the NgModule.exports of NgxChartsModule, but itself has errors
node_modules/@swimlane/ngx-charts/release/esm.js(14306,5): error TS-996003: Appears in the NgModule.exports of NgxChartsModule, but itself has errors
node_modules/@swimlane/ngx-charts/release/esm.js(15006,5): error TS-996003: Appears in the NgModule.exports of NgxChartsModule, but itself has errors

    at ClusterWorker.compile (/home/spitfjre/Workspace/mysvg/frontend/node_modules/@angular/compiler-cli/ngcc/src/main.js:170:27)
    at Worker.<anonymous> (/home/spitfjre/Workspace/mysvg/frontend/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/worker.js:41:42)
    at Worker.emit (events.js:210:5)
    at process.<anonymous> (internal/cluster/worker.js:30:12)
    at process.emit (events.js:210:5)
    at emit (internal/child_process.js:876:12)
    at processTicksAndRejections (internal/process/task_queues.js:81:21)
    at ClusterMaster.onWorkerMessage (/home/spitfjre/Workspace/mysvg/frontend/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/master.js:158:27)
    at /home/spitfjre/Workspace/mysvg/frontend/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/master.js:46:95
    at ClusterMaster.<anonymous> (/home/spitfjre/Workspace/mysvg/frontend/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/master.js:238:57)
    at step (/home/spitfjre/Workspace/mysvg/frontend/node_modules/tslib/tslib.js:136:27)
    at Object.next (/home/spitfjre/Workspace/mysvg/frontend/node_modules/tslib/tslib.js:117:57)
    at /home/spitfjre/Workspace/mysvg/frontend/node_modules/tslib/tslib.js:110:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/home/spitfjre/Workspace/mysvg/frontend/node_modules/tslib/tslib.js:106:16)
    at EventEmitter.<anonymous> (/home/spitfjre/Workspace/mysvg/frontend/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/master.js:232:32)
    at EventEmitter.emit (events.js:210:5)

The originally reported ng-pick-datetime error seems to have been fixed. @spitfjre, if you are still running into problems with the latest versions of Angular and ng-pick-datetime, please open a new issue on the angular/angular repo.