Skip to content

[Regression]: Playwright CT CLI scripts fail due to broken initializePlugin import #29746

Closed

Description

Last Good Version

1.41.2

First Bad Version

1.42.0

Steps to reproduce

mkdir example && cd example
npm init --yes
npm install --save-dev @playwright/experimental-ct-react17@1.42.0
npx pw-react17 --version
  1. Create a new Node project
  2. Install any of the following Playwright CT packages:
  • @playwright/experimental-ct-vue
  • @playwright/experimental-ct-vue2
  • @playwright/experimental-ct-solid
  • @playwright/experimental-ct-svelte
  • @playwright/experimental-ct-react17
  1. Run PLaywright via their dedicated CLI script, e.g. npx pw-react17 --version
  2. Notice type error:
example/node_modules/@playwright/experimental-ct-react17/cli.js:21
initializePlugin(_framework);
^

TypeError: initializePlugin is not a function

Expected behavior

cli.js files in Playwright CT packages should import initializePlugin from the correct location, or use an alternative initialisation mechanism since the function seems to have been removed altogether in Playwright 1.42.0

Actual behavior

The affected CLI scripts seem to be:

Additional context

No response

Environment

System:
    OS: macOS 14.3.1
    CPU: (12) arm64 Apple M2 Max
    Memory: 43.20 GB / 96.00 GB
  Binaries:
    Node: 20.11.1 - ~/.nvm/versions/node/v20.11.1/bin/node
    npm: 10.2.4 - ~/.nvm/versions/node/v20.11.1/bin/npm
    pnpm: 8.15.3 - ~/.nvm/versions/node/v20.11.1/bin/pnpm
  Languages:
    Bash: 3.2.57 - /bin/bash
  npmPackages:
    @playwright/experimental-ct-react17: ^1.42.0 => 1.42.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions