question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting "Unable to find type" Error when trying to install playwright

See original GitHub issue

While following these set up steps trying to install Playwright on my Mac: https://playwright.dev/dotnet/docs/intro#installing-playwright

I’m getting the following error when executing this command: pwsh bin/Debug/net6.0/playwright.ps1 install

Error: InvalidOperation: /Users/–/–/Test/bin/Debug/net6.0/playwright.ps1:5:6 Line | 5 | exit [Microsoft.Playwright.Program]::Main($args) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Unable to find type [Microsoft.Playwright.Program].

Has anyone been able to overcome this issue?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
NatElkinscommented, Feb 20, 2023

Want to report that uninstalling my current version of pwsh and installing the latest fixed this issue for me. Went from 7.0.0 to 7.3.2.

0reactions
mxschmittcommented, Oct 28, 2022

Closing since we can’t repro and it seems stale. If you find something useful why this is happening, let us know and we’re happy to adjust documentation, since this is the first time this issue is occuring for our users.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to install playwright on a Windows due to not ...
Unable to install playwright on a Windows due to not recognizing argument. I have verified on my windows that I have Powershell -...
Read more >
Installation | Playwright
Run the install command and select the following to get started: Choose between TypeScript or JavaScript (default is TypeScript); Name of your Tests...
Read more >
Browsers
Each version of Playwright needs specific versions of browser binaries to operate. You will need to use the Playwright CLI to install these...
Read more >
Getting started - VS Code
Get started by installing Playwright and generating a test to see it in action. Alternatively you can also get started and run your...
Read more >
Playwright Library
For certain types of errors Playwright uses specific error classes. These classes are available via playwright.errors . An example of handling a timeout...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found