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

Error: Failed to compile Typescript processor when using Playwright #3396

Open
servohatred opened this issue Oct 30, 2024 · 0 comments
Open

Comments

@servohatred
Copy link

I am using artillery with playwright and TS, I am using the latest version but I am getting this compilation error:
Any clue?

Error: Failed to compile Typescript processor
Build failed with 2 errors:
node_modules/playwright/node_modules/playwright-core/lib/server/bidi/bidiOverCdp.js:7:49: ERROR: Could not resolve "chromium-bidi/lib/cjs/bidiMapper/BidiMapper"       
node_modules/playwright/node_modules/playwright-core/lib/server/bidi/bidiOverCdp.js:8:56: ERROR: Could not resolve "chromium-bidi/lib/cjs/cdp/CdpConnection"
    at replaceProcessorIfTypescript 

Node.js v20.11.1

Test run id: td5qe_gqd6z9mdcjhh7a63qa6wmttmqeyzk_46pt
▲ [WARNING] "./chromium/appIcon.png" should be marked as external for use with "require.resolve" [require-resolve-not-external]

    node_modules/playwright/node_modules/playwright-core/lib/server/launchApp.js:63:67:
      63 │ ...ault.promises.readFile(require.resolve('./chromium/appIcon.png'));
         ╵                                           ~~~~~~~~~~~~~~~~~~~~~~~~

✘ [ERROR] Could not resolve "chromium-bidi/lib/cjs/bidiMapper/BidiMapper"

    node_modules/playwright/node_modules/playwright-core/lib/server/bidi/bidiOverCdp.js:7:49:
      7 │ ...reWildcard(require("chromium-bidi/lib/cjs/bidiMapper/BidiMapper"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant