Skip to content

Cannot find module 'zone.js/dist/zone.js' after upgrade to zone.js 0.11.0Β #38526

@splincode

Description

@splincode

🐞 bug report

Affected Package

The issue is caused by package zone.js

Is this a regression?

Yes

Description

thymikee/jest-preset-angular#445

FAIL  file-size.pipe.spec.ts
  ● Test suite failed to run

    Cannot find module 'zone.js/dist/zone.js' from '../../../../../node_modules/jest-preset-angular/build/setupJest.js'

    Require stack:
      /node_modules/jest-preset-angular/build/setupJest.js
      /node_modules/jest-preset-angular/index.js
      src/stubs/setupJest.ts

      at Resolver.resolveModule (../../../../../node_modules/jest-resolve/build/index.js:307:11)

🌍 Your Environment

Angular Version:


Yarn 1.26
Angular 9
Jest 26
jest-preset-angular 8

After install zone.js I am open node_modules

image

image

Where dist/zone.js?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions