You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
browser.createIncognitoBrowserContext is not a function
Current behavior
If using forRootAsync throws an error saying that browser.createIncognitoBrowserContext is not a function
Expected behavior
It should not throw an exception and create module correctly when using forRootAsync
Possible solution
I'm not sure if it's related but found out in in the PuppeteerCoreModule where it tries to create context HERE. useFactory has 1 arg which is Browser but inject is provided with 2 parameters and browser is the second param.
According to Nest docs, it mentioned that The two lists should be correlated: Nest will pass instances from the inject list as arguments to the factory function in the same order.
Bug Report
browser.createIncognitoBrowserContext is not a function
Current behavior
If using forRootAsync throws an error saying that browser.createIncognitoBrowserContext is not a function
Expected behavior
It should not throw an exception and create module correctly when using forRootAsync
Possible solution
I'm not sure if it's related but found out in in the PuppeteerCoreModule where it tries to create context HERE. useFactory has 1 arg which is Browser but inject is provided with 2 parameters and browser is the second param.
According to Nest docs, it mentioned that
The two lists should be correlated: Nest will pass instances from the inject list as arguments to the factory function in the same order.
Environment
"@nestjs/common": "^7.5.1",
"@nestjs/config": "^0.6.1",
"@nestjs/core": "^7.5.1",
"nest-puppeteer": "^1.1.1",
"puppeteer": "^5.5.0"
The text was updated successfully, but these errors were encountered: