Skip to content

bug(cdk): DevkitFileSystem mistakenly assumes not a directory #21160

Closed
@kyubisation

Description

@kyubisation

Under some circumstances (I assume related to execution context), the e instanceof PathIsDirectoryException check in DevkitFileSystem.exists does not work. This causes the file/module resolution for the build tsconfig (files: ['main.ts', 'polyfill.ts]) to fail.

Reproduction

Unclear. Maybe run ng update @angular/core @angular/cli and ng update @angular/cdk separately?

Expected Behavior

The migrations include all files referenced in main.ts.

Actual Behavior

Only main.ts and polyfill.ts are resolved.

Environment

  • Angular: 11.0.2
  • CDK/Material: 11.0.1
  • Browser(s): -
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/schematicscdk/schematics is *not* a public API

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions