Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Angular CDK missing Forms peer dependency reproduction

Open in GitHub Codespaces

This repository reproduces the undeclared runtime dependency from @angular/cdk/stepper to @angular/forms when pnpm's global virtual store is enabled. Forms is installed directly by the application, but CDK cannot access it because CDK does not declare it in its own package metadata.

pnpm install
pnpm reproduce

StackBlitz is not suitable for this reproduction because its WebContainer dependency bootstrap does not preserve pnpm's native global virtual store layout. Use a native environment or the linked GitHub Codespace.

The bundle fails because @angular/cdk/stepper imports ControlContainer from @angular/forms, but @angular/forms is not declared in the CDK package metadata. With the project-local virtual store, this can be masked by accidental access to the application's root dependency.

Adding the missing package extension makes the same command succeed:

packageExtensions:
  '@angular/cdk@22.0.4':
    peerDependencies:
      '@angular/forms': 22.0.6

About

Minimal pnpm reproduction for the missing @angular/forms peer dependency in Angular CDK

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages