Skip to content

cdk-experimental dialog build not working #10032

@abdulkareemnalband

Description

@abdulkareemnalband

I don't know whether this bug report is valid, as cdk-dialog component is experimental

Bug

cdk-experimental dialog build not working

What is the expected behavior?

exprimental dialog should work

What is the current behavior?

exported build has botched imports

What are the steps to reproduce?

https://stackblitz.com/edit/angular-material2-issue-ugzp1g

Is there anything else we should know?

in exported build file node_modules\@angular\cdk-experimental\esm5\dialog.es5.js:22
Overlay is imported as
import { Overlay as Overlay$1, OverlayConfig, OverlayModule } from '@angular/cdk/overlay';

but used as

    Dialog.ctorParameters = function () { return [
        { type: Overlay, }, // here
        { type: Injector, }, // injector has never been imported
        { type: undefined, decorators: [{ type: Inject, args: [DIALOG_REF,] },] },
        { type: undefined, decorators: [{ type: Inject, args: [DIALOG_SCROLL_STRATEGY,] },] },
        { type: Dialog, decorators: [{ type: Optional }, { type: SkipSelf },] },
        { type: Location, decorators: [{ type: Optional },] },
    ]; };

and Injector has never been imported

After Manually fixing imports in node_modules, everything works

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions