Skip to content

bug(cdk): Builds fail with cdk@15.0.1 due to parse5 library error #24375

@cskiwi

Description

@cskiwi

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

15.0.0

Description

When updating to the latest version: 15.0.1 of cdk, the builds start to fail,

Was introduced in update: angular/components#26086

./node_modules/parse5-htmlparser2-tree-adapter/lib/index.js:3:16-52 - Error: Module not found: Error: Package path ./lib/common/doctype is not exported from package <project>\node_modules\parse5 (see exports field in <project>\node_modules\parse5\package.json)

./node_modules/parse5-htmlparser2-tree-adapter/lib/index.js:6:4-37 - Error: Module not found: Error: Package path ./lib/common/html is not exported from package <project>\node_modules\parse5 (see exports field in <project>\node_modules\parse5\package.json)

./node_modules/critters/dist/critters.mjs:38:2-14 - Error: export 'default' (imported as 'parse5') was not found in 'parse5' (possible exports: ErrorCodes, Parser, Token, Tokenizer, TokenizerMode, defaultTreeAdapter, foreignContent, html, parse, parseFragment, serialize, serializeOuter)

./node_modules/critters/dist/critters.mjs:55:9-25 - Error: export 'default' (imported as 'parse5') was not found in 'parse5' (possible exports: ErrorCodes, Parser, Token, Tokenizer, TokenizerMode, defaultTreeAdapter, foreignContent, html, parse, parseFragment, serialize, serializeOuter)

Reproduction

Steps to reproduce:

  1. update to the latest version of cdk
  2. Build

Expected Behavior

That the build would work

Actual Behavior

Build is crashing

Environment

  • Angular: 15.0.1
  • CDK/Material: 15.0.1
  • Browser(s): x
  • Operating System (e.g. Windows, macOS, Ubuntu): windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions