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

[BUG] 1.20 Cannot find module './innerCli' #2068

Closed
Mertsch opened this issue Mar 16, 2022 · 12 comments
Closed

[BUG] 1.20 Cannot find module './innerCli' #2068

Mertsch opened this issue Mar 16, 2022 · 12 comments

Comments

@Mertsch
Copy link

Mertsch commented Mar 16, 2022

Context:

  • Playwright Version: 1.20
  • Operating System: Windows
  • .NET version: .NET 6
node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module './innerCli'
Require stack:
- C:\Repos\xxx\bin\Debug\net6.0\.playwright\package\lib\cli\cli.js

Describe the bug

1.20 CLI does not work, 1.19 works just fine

@mxschmitt
Copy link
Member

Could you try rebuilding your project?

@Mertsch
Copy link
Author

Mertsch commented Mar 16, 2022

@mxschmitt I am pretty sure I did, but indeed it fixed the issue. Or reinstalling the package (as I reverted to 1.19).

@Mertsch Mertsch closed this as completed Mar 16, 2022
@304NotModified
Copy link

304NotModified commented Mar 16, 2022

Same issue here.

D:\SomeWhere> pwsh .\bin\release\net5.0\playwright.ps1 install
node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module './innerCli'
Require stack:
- D:\SomeWhere\bin\release\net5.0\.playwright\package\lib\cli\cli.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (D:\SomeWhere\bin\release\net5.0\.playwright\package\lib\cli\cli.js:33:3)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'D:\SomeWhere\\bin\\release\\net5.0\\.playwright\\package\\lib\\cli\\cli.js'
  ]
}

@mxschmitt
Copy link
Member

@304NotModified does a rebuild work for you?

@304NotModified
Copy link

Wont help. Tried that indeed.

@304NotModified
Copy link

304NotModified commented Mar 16, 2022

This is with windows and .net 5 by the way

@mxschmitt
Copy link
Member

what about dotnet clean and then dotnet build?

@chriswelles
Copy link

chriswelles commented Mar 21, 2022

Same problem here. dotnet clean and then dotnetbuild did not resolve it. Tried touching the files as referenced in #2069, but that doesn't resolve things either. Using .NET 6 on windows with latest VS 2022. I've rolled back to 1.19.1 for the time being.

This was a few days ago, and unfortunately, I'm not actually sure that it was showing the ./innerCli error or not at the end. There was a null exception of some sort trying to complete the Playwright.CreateAsync() call.

@mxschmitt
Copy link
Member

(We'll publish a new version with a fix later today)

@304NotModified
Copy link

@mxschmitt
It the fix already live? What is the version? I cant find it!

@304NotModified
Copy link

Is this fixed in 1.20.2?

@mxschmitt
Copy link
Member

@304NotModified yes it should be fixed.

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

4 participants