question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Unable to build latest release (2.8.2)

See original GitHub issue

🐞 Bug report

Description

I get the following errors when building release 2.8.2:

ERROR: node_modules/@taiga-ui/core/components/dialog/dialog.service.d.ts:7:24 - error TS2416: Property ‘component’ in type ‘TuiDialogService’ is not assignable to the same property in base type ‘AbstractTuiDialogService<TuiDialogOptions<any>>’. Type ‘PolymorpheusComponent<TuiDialogComponent<unknown, unknown>, object>’ is not assignable to type ‘PolymorpheusContent<TuiDialog<TuiDialogOptions<any>, any>>’. Type ‘PolymorpheusComponent<TuiDialogComponent<unknown, unknown>, object>’ is not assignable to type ‘PolymorpheusComponent<object, TuiDialog<TuiDialogOptions<any>, any>>’. Types have separate declarations of a private property ‘injector’.

7 protected readonly component: PolymorpheusComponent<TuiDialogComponent<unknown, unknown>, object>; ~~~~~~~~~

An unhandled exception occurred: node_modules/@taiga-ui/core/components/dialog/dialog.service.d.ts:7:24 - error TS2416: Property ‘component’ in type ‘TuiDialogService’ is not assignable to the same property in base type ‘AbstractTuiDialogService<TuiDialogOptions<any>>’. Type ‘PolymorpheusComponent<TuiDialogComponent<unknown, unknown>, object>’ is not assignable to type ‘PolymorpheusContent<TuiDialog<TuiDialogOptions<any>, any>>’. Type ‘PolymorpheusComponent<TuiDialogComponent<unknown, unknown>, object>’ is not assignable to type ‘PolymorpheusComponent<object, TuiDialog<TuiDialogOptions<any>, any>>’. Types have separate declarations of a private property ‘injector’.

7 protected readonly component: PolymorpheusComponent<TuiDialogComponent<unknown, unknown>, object>;

Expected behavior

The library builds without error

Versions

  • OS: Windows
  • Browser [e.g. chrome, safari]
  • Angular ~11.2.12
  • Node: v14.15.4
  • NPM: 6.14.10

Additional context

V2.8.0 builds without error.

Build error log

[error] Error: node_modules/@taiga-ui/core/components/dialog/dialog.service.d.ts:7:24 - error TS2416: Property 'component' in type 'TuiDialogService' is not assignable to the same property in base type 'AbstractTuiDialogService<TuiDialogOptions<any>>'.
  Type 'PolymorpheusComponent<TuiDialogComponent<unknown, unknown>, object>' is not assignable to type 'PolymorpheusContent<TuiDialog<TuiDialogOptions<any>, any>>'.
    Type 'PolymorpheusComponent<TuiDialogComponent<unknown, unknown>, object>' is not assignable to type 'PolymorpheusComponent<object, TuiDialog<TuiDialogOptions<any>, any>>'.
      Types have separate declarations of a private property 'injector'.

7     protected readonly component: PolymorpheusComponent<TuiDialogComponent<unknown, unknown>, object>;
                         ~~~~~~~~~

    at Object.compileSourceFiles (C:\easilog\web-app-rewrite\easilog\node_modules\ng-packagr\lib\ngc\compile-source-files.js:61:15)
    at async C:\easilog\web-app-rewrite\easilog\node_modules\ng-packagr\lib\ng-package\entry-point\compile-ngc.transform.js:35:13

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
waterpleacommented, May 17, 2021

It’s not necessarily incorrect, it’s superfluous. If hint template had a button that should be triggering change detection on the parent component (say it changed some value on click) — then directive would be necessary. This is exactly why it was created — to sync change detection. But here it’s not needed and we should probably remove it from the demo (and in most cases where it’s used on the demo), thank you for spotting it!

0reactions
the-ultcommented, May 17, 2021

Thanks. removing it, simplifies it 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUG] Unable to build latest release (2.8.2) · Issue #373 - GitHub
I get the following errors when building release 2.8.2: ERROR: node_modules/@taiga-ui/core/components/dialog/dialog.service.d.ts:7:24 - error ...
Read more >
Charm fails to install on focal {main development branch}
I am unable to build this charm from source. (on focal and for focal) I initially tried the stable/21.10 branch with the build.lock....
Read more >
MRTK 2.8 release notes - Mixed Reality - Microsoft Learn
The release of MRTK 2.8.0 brings in several bug fixes for community-filed issues and some new features that you, the MRTK community, ...
Read more >
ArcGIS Pro 2.8 Issues Addressed - Esri
BUG -000136064 Unable to open the attribute table of the ERDAS IMAGINE raster data. BUG-000136072 Plugin data sources don't work with Export.
Read more >
Release notes for ArcGIS Pro 3.0
pdf file by searching for the BUG number on the Technical Support website. The .pdf file is updated as patches are released. Note:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found