Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'@playwright/test could not be found' when running e2e tests #30134

Open
1 of 4 tasks
Anjanas-dh opened this issue Feb 21, 2025 · 0 comments
Open
1 of 4 tasks

'@playwright/test could not be found' when running e2e tests #30134

Anjanas-dh opened this issue Feb 21, 2025 · 0 comments

Comments

@Anjanas-dh
Copy link

Anjanas-dh commented Feb 21, 2025

Current Behavior

I have added a new Angular application to my current monorepo.

When running npx nx e2e appname-e2e, the Deamon process is terminated and closed. In the deamon.log an error occurs:
"Error: The externalDependency '@playwright/test' for 'fleet-reporting-e2e:e2e' could not be found"

Steps that I did to try to resolve this:

  • nx reset
  • removing package-lock, node_modules and .nx cache
  • Comparing the monorepo with a clean new nx monorepo
  • @playwright/test is available in the node_modules folder

Expected Behavior

I expect the e2e tests to run with playwright

GitHub Repo

No response

Steps to Reproduce

Not sure if I can provide this.

Nx Report

Node           : 20.18.2
OS             : win32-x64
Native Target  : x86_64-windows
npm            : 10.8.2

nx (global)            : 20.3.0
nx                     : 20.4.5
@nx/js                 : 20.4.5
@nx/jest               : 20.4.5
@nx/eslint             : 20.4.5
@nx/workspace          : 20.4.5
@nx/angular            : 20.4.5
@nx/devkit             : 20.4.5
@nx/eslint-plugin      : 20.4.5
@nx/module-federation  : 20.4.5
@nx/playwright         : 20.4.5
@nx/web                : 20.4.5
@nx/webpack            : 20.4.5
typescript             : 5.7.3
---------------------------------------
Registered Plugins:
@nx/playwright/plugin
@nx/eslint/plugin
---------------------------------------
Community plugins:
@ngneat/edit-in-place   : 1.6.1
@ngneat/spectator       : 14.0.0
@ngrx/effects           : 19.0.0
@ngrx/operators         : 18.1.1
@ngrx/router-store      : 19.0.0
@ngrx/store             : 19.0.0
@ngrx/store-devtools    : 19.0.0
@ns3/nx-jest-playwright : 2.6.1
angular-eslint          : 19.1.0
ng-mocks                : 14.13.2

Failure Logs

C:\dev\repositories\fleet-reporting-frontend\node_modules\nx\src\hasher\native-task-hasher-impl.js:32
        const plans = this.planner.getPlansReference(tasks.map((t) => t.id), taskGraph);
                                   ^

Error: The externalDependency '@playwright/test' for 'fleet-reporting-e2e:e2e' could not be found
    at NativeTaskHasherImpl.hashTasks (C:\dev\repositories\fleet-reporting-frontend\node_modules\nx\src\hasher\native-task-hasher-impl.js:32:36)
    at InProcessTaskHasher.hashTasks (C:\dev\repositories\fleet-reporting-frontend\node_modules\nx\src\hasher\task-hasher.js:41:46)
    at handleHashTasks (C:\dev\repositories\fleet-reporting-frontend\node_modules\nx\src\daemon\server\handle-hash-tasks.js:30:56)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async handleResult (C:\dev\repositories\fleet-reporting-frontend\node_modules\nx\src\daemon\server\server.js:183:16)
    at async handleMessage (C:\dev\repositories\fleet-reporting-frontend\node_modules\nx\src\daemon\server\server.js:112:9)
    at async C:\dev\repositories\fleet-reporting-frontend\node_modules\nx\src\daemon\server\server.js:74:9 {
  code: 'GenericFailure'
}

Node.js v20.18.2

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

@Anjanas-dh Anjanas-dh changed the title '@playwirhgt/test could not be found' when running e2e tests '@playwright/test could not be found' when running e2e tests Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant