Skip to content

V9 hammerjs migration fails if project does not have dependencies in package.json #18469

Closed
@splincode

Description

@splincode

Reproduction

Angular 8

If i have

{
  "devDependencies": {
    "hammerjs": "..."
  }
}

instead

{
  "dependencies": {
    "hammerjs": "..."
  }
}

and run ng update I have error

❯ Updates Angular Material to v9
    
    ⚠  General notice: The HammerJS v9 migration for Angular Components is not able to migrate tests.
Cannot read property 'hammerjs' of undefined
✖ Migration failed. See above for further details.

Environment

  • Angular:
  • CDK/Material: 8.0

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions